Re: [Waxgui-users] tab order not working
Status: Alpha
Brought to you by:
zephyrfalcon
From: Groszer A. <ad...@py...> - 2006-06-22 16:12:28
|
Hello Hans, Yeah, a lot better. I'm on Windows too. Thanks. Thursday, June 22, 2006, 5:44:19 PM, you wrote: HN> Groszer Adam wrote: >> Hello, >> >> I'm having problems with the tab order using wax. >> It even does not work with the examples. >> Eg. in buttondemo.py if I push the <tab> key nothing happens. >> >> Am I doing something wrong? Which is the correct way to put objects >> and containers into a correct tab order? HN> Use the 'tab_traversal' option. Here's an example (which will be added HN> to the Wax distro, by the way): --->>8--- HN> # taborder-1.py HN> from wax import * HN> class MainFrame(VerticalFrame): HN> def Body(self): HN> self.BackgroundColor = (0xF0, 0xF0, 0xF0) HN> l = Label(self, "Use the <Tab> key to move\nto the next widget.") HN> self.AddComponent(l, expand='both', border=10) HN> b = Button(self, "blah") HN> self.AddComponent(b, expand='both', border=10) HN> t = TextBox(self, "hello") HN> self.AddComponent(t, expand='both', border=10) HN> c = ComboBox(self, ['een', 'twee', 'drie']) HN> self.AddComponent(c, expand='both', border=10) HN> self.Pack() HN> app = Application(MainFrame, title='taborder-1', tab_traversal=1) HN> app.Run() --->>8--- HN> In other words, a frame needs to be created with the tab_traversal HN> option to make this work. It is not on by default. (This works for me HN> on Windows... haven't tested it on other systems.) HN> Hope this helps! -- Best regards, Groszer Adam -- Quote of the day: The only freedom I care about is the freedom to do right; the freedom to do wrong I am ready to part with. - Thomas Henry Huxley |