Re: [pygtk] How to prevent tab focus changes in H/VBoxes?

2000-01-27 Thread Stephan R.A. Deibel
On Thu, 27 Jan 2000, James Henstridge wrote: > You may be able to do this like so: > > 1) connect to the key_press_event of the GtkText widget. > 2) In the handler, if the key pressed was GDK.Tab, then insert a tab >character into the text widget, call the emit_stop_by_name method of >th

Re: [pygtk] How to prevent tab focus changes in H/VBoxes?

2000-01-26 Thread Matt Wilson
text = GtkText() text['can_focus'] = FALSE Try that. I dunno if it'll work. Matt On Wed, Jan 26, 2000 at 11:51:23PM -0500, Stephan R.A. Deibel wrote: > Hi, > > I have a GtkHBox with two GtkTexts in it and when I hit the focus is > shifted between texts instead of inserting a tab character in

Re: [pygtk] How to prevent tab focus changes in H/VBoxes?

2000-01-26 Thread James Henstridge
You may be able to do this like so: 1) connect to the key_press_event of the GtkText widget. 2) In the handler, if the key pressed was GDK.Tab, then insert a tab character into the text widget, call the emit_stop_by_name method of the text widget for key_press_event and return TRUE. For ot

[pygtk] How to prevent tab focus changes in H/VBoxes?

2000-01-26 Thread Stephan R.A. Deibel
Hi, I have a GtkHBox with two GtkTexts in it and when I hit the focus is shifted between texts instead of inserting a tab character into the text. How do I turn this off? I can't seem to find this at any level of the abstractions involved... Thanks, - Stephan To unsubscribe: echo "unsubscri