[pygtk] Editable tree and CellRenderToggle

Nicolas Évrard nicoe at no-log.org
Fri Dec 30 10:19:36 WST 2005


* Tony Nelson  [2005-12-09 06:32 +0100]: 
>At 11:42 AM +0100 12/8/05, nicoe at no-log.org wrote:
>>Hello,
>>
>>I'm stuck with a problem, where I'm using Tab, Shift Tab, Up and Down
>>to navigate into an editable tree (I use the 'editing-started' signal
>>to bind the key events to a function of my customized ViewTree).
>>Evrything work flawlessly until I tried to put a toggle into a cell.
>>
>>When entering the cell the checkbox is toggled  and the navigation
>>stops.
>>
>>What I would like to do, is:
>>
>>    - entering the cell
>>    - pressing Space to (de)activate the toggle
>>    - and the continue to move using my keys.
>>
>>Is this possible ? Or should I run for the easiest way to do it : a
>>TextEntry with either 0 or 1 in it ?
>
>I haven't used TreeView before.  I don't see any interface intended to let
>one get access to the actual widgets used (assuming they actually /use/ a
>button to show their buttons).  I'm also not quite sure how you are
>"binding" to your TreeView, or how it is "customized".
>
>Using the tree_view.py demo, I find that the spacebar already taggles the
>activatable widgets (the demo sets some to not be), and the active column
>is set by the right and left arrow keys.  Unfortunately, the keyboard focus
>and sensitivity aren't shown, so it is rather mysterious to use.

Thank you for your help but finally I've changed my mind I decided to 
go with a True/False gtkEntry widget. Not that good but enough for me 
now.


-- 
(°>  Nicolas Évrard
/ )  Liège - Belgique
^^


More information about the pygtk mailing list