(PyGTK) Disabling ToolButton when no TreeView item is selected?

2006-12-28 Thread cypher543
I have a TreeView and a ToolButton. The ToolButton should only be active if the user has selected an item in the TreeView. What signal should I use to achieve this? Thanks, David -- http://mail.python.org/mailman/listinfo/python-list

Re: SPAM-LOW: (PyGTK) Disabling ToolButton when no TreeView item is selected?

2006-12-28 Thread Scripter47
cypher543 skrev: I have a TreeView and a ToolButton. The ToolButton should only be active if the user has selected an item in the TreeView. What signal should I use to achieve this? Thanks, David Hey I use the curselection() function. Example: id = self.listbox.curselection() id = id[0]

Re: (PyGTK) Disabling ToolButton when no TreeView item is selected?

2006-12-28 Thread Hendrik van Rooyen
cypher543 [EMAIL PROTECTED] wrote: I have a TreeView and a ToolButton. The ToolButton should only be active if the user has selected an item in the TreeView. What signal should I use to achieve this? you can try using the configure method on the toolbutton in the command that is executed