tk global bindings
vincent at visualtrans.de
Sat Jan 29 14:34:23 EST 2005
Gabriel B. wrote:
> I'm starting to write a POS application UI's module.
> There's no mouse, just a bunch of global shortcuts.
> the problem is that TK doesn't have global shortcuts! Is there a
> work-around or i will have to attach 80 or so bindings for every input
In Tk here are three levels of binding: instance binding, class binding,
and application binding represented by the bind, bind_class, and
bind_all methods. You're probably looking for the the bind_all method,
as in self.bind_all("<SomeKey>", self.onSomeKey)
More information about the Python-list