[pygtk] Stupid focus question

1999-11-17 Thread Hassan Aurag
Hi, Ok here goes: I have a GnomeApp, which contains with set_content a term done with zvt and has a GtkTree inside a VBOX added to it using add_docked. Now, I haven't been able (duh!) to make this thing understand that when I click or move in term space, I want it to get focus. Each time,

Re: [pygtk] Stupid focus question

1999-11-17 Thread James Henstridge
There is a GtkWidget.grab_focus() method to grab the focus for a widget. You may want to connect to the enter_notify_event to make the terminal grab focus when the cursor enters the terminal window. The other option is to remove focusability of some other widgets with

Re: [pygtk] Stupid focus question

1999-11-17 Thread Hassan Aurag
Thanks, It works, actually by unset_flags(CAN_FOCUS) in all other boxes and sub-boxes since zvt is added to GnomeApp by a set_contents, It seems to give it default focus. Now it works, thanx again! Btw, zvt.match_add seems to miss a third argument. It is defined as