help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zenity_list


From: Søren Hauberg
Subject: Re: zenity_list
Date: Sun, 24 May 2009 11:35:29 +0200

lør, 23 05 2009 kl. 19:35 +0200, skrev Michael Grossbach:
> Hi,
> the function zenity_list() works fine on Octave 3.0.1 on Debian lenny 
> using the online help example. When I use the "radiolist" or "checklist" 
> options though zenity returns an error once I click the list window's OK 
> button:
> 
> octave:11>choice = zenity_list ("Test", {"val", "Height"}, {"TRUE", 
> "FALSE"; "120cm", "180cm"}, "radiolist")
> 
> (zenity:5653): GLib-GObject-CRITICAL **: g_value_get_string: assertion 
> `G_VALUE_HOLDS_STRING (value)' failed
> choice = (null)
> 
> which returns:
> octave:14> which zenity_list
> zenity_list is the user-defined function from the file
> /usr/share/octave/packages/zenity-0.5.5/zenity_list.m
> 
> 
> Any ideas what I am doing wrong?

It's been quite a while since I used these functions. They might be
buggy. I tried your example, and it failed for me as well. The problem
is related to the '--print-column' option to 'zenity'. Reading the
'zenity' documentation doesn't clear things up for me, so I'm not sure
if this is a bug in the 'zenity_list' function or what.

You can work around the problem in your example, by adding an extra
argument "all" to you function call. That is

        choice = zenity_list ("Test", {"val", "Height"}, {"TRUE",
        "FALSE"; "120cm", "180cm"}, "radiolist", "all")

Søren



reply via email to

[Prev in Thread] Current Thread [Next in Thread]