Re: [pygtk] Alt + Arrow behaviour
On Thu, Sep 12, 2002 at 10:06:08AM +0100, Graham Ashton wrote: > > You'll need to emit_stop_by_name("key_press_event") inside your callback > > if you don't want any other handlers to run. And maybe return gtk.TRUE, > > too; these things are a bit confusing to me still. > > It worked a treat, thanks very much. Added this and two other style/background questions to the FAQ, enjoy. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] Alt + Arrow behaviour
On Tue, 2002-09-10 at 17:58, Christian Reis wrote: > On Tue, Sep 10, 2002 at 05:39:11PM +0100, Graham Ashton wrote: > > > > The only problem is that every time I press the Alt-arrow combination > > the focus moves around between the various widgets in the interface > > (i.e. just as it normally does). > > You'll need to emit_stop_by_name("key_press_event") inside your callback > if you don't want any other handlers to run. And maybe return gtk.TRUE, > too; these things are a bit confusing to me still. It worked a treat, thanks very much. -- Graham Ashton ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] Alt + Arrow behaviour
On Tue, Sep 10, 2002 at 05:39:11PM +0100, Graham Ashton wrote: > I've managed to connect a callback to the key_press_event on my > top-level window, and it works fine. > > The only problem is that every time I press the Alt-arrow combination > the focus moves around between the various widgets in the interface > (i.e. just as it normally does). You'll need to emit_stop_by_name("key_press_event") inside your callback if you don't want any other handlers to run. And maybe return gtk.TRUE, too; these things are a bit confusing to me still. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
[pygtk] Alt + Arrow behaviour
Hi. I'd like to be able to use Alt+Left-arrow and Alt+Right-arrow in my application (to simulate the forward and back key bindings in your average web browser). I've managed to connect a callback to the key_press_event on my top-level window, and it works fine. The only problem is that every time I press the Alt-arrow combination the focus moves around between the various widgets in the interface (i.e. just as it normally does). How do you disable the focus switching? -- Graham Ashton ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/