[H-GEN] pygtk/bonobo query

Peter Robinson pjr at itee.uq.edu.au
Wed Apr 11 17:25:40 EDT 2007


Menno Smits wrote:
> Peter Robinson wrote:
>
> Hi Peter,
>
>> My question is how can I set the initial settings of the radio 
>> buttons based on a test - specifically if the sshfs fails then
>> I want to set the unmounted radio button.
>>
>> After many frustrating hours of google'ing I can't find a solution - 
>> I assume it is possible (and probably easy :(  )
>
> I'm also the author of a Python-based Gnome applet (ssh-agent-applet, 
> http://freshfoo.com/wiki/CodeIndex/).
>
> I had the same problem as you (with a toggle control) and like you, 
> spent hours and hours looking for a way to force the initial setting. 
> Even looked through the underlying pygtk and bonobo code didn't turn 
> up a solution.
>
> I found that the initial control value could be set from a C/C++ based 
> applet but there seemed to be no equivalent way to do this from Python 
> applets.
>
> This thread is probably off-topic for this list. It might be best to 
> hassle the Gnome or PyGTK developers.
>
> Good luck. I'd love to know if you figure it out.
>
> Regards,
> Menno
>
>
Thanks - it's very annoying - I guessed from you choice of the label 
name on your checkbox that you had the same problem :(

Peter

 




More information about the General mailing list