[H-GEN] pygtk/bonobo query

Menno Smits menno at freshfoo.com
Wed Apr 11 04:25:21 EDT 2007


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




More information about the General mailing list