How can I tell if the control key is down?
In particular I need to know in the event handler for an
item being expanded in a tree view. (The docs imply I can
call TreeEvent.GetKeyEvent().ControlDown(), but that always
returns false).
Roger
How can I tell if the control key is down?
In particular I need to know in the event handler for an
item being expanded in a tree view. (The docs imply I can
call TreeEvent.GetKeyEvent().ControlDown(), but that always
returns false).
Roger
Roger Binns wrote:
How can I tell if the control key is down?
In particular I need to know in the event handler for an
item being expanded in a tree view. (The docs imply I can
call TreeEvent.GetKeyEvent().ControlDown(), but that always
returns false).
You proabbly need to catch the real key or mouse event for it, and not depend on the cooked values provided by the tree.
There has been talk of adding global functions to get the current state of the modifier keys, but if that is implemented it will only be in 2.5+.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!