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
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]
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