* Tony Nelson [2005-12-09 06:32 +0100]:
At 11:42 AM +0100 12/8/05, [EMAIL PROTECTED] 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
^^
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to