Don't understand wxPython ids

Grant Edwards grante at visi.com
Wed Apr 28 21:04:05 EDT 2004


On 2004-04-28, Greg Krohn <greg at invalid.invalid> wrote:

> Here we go. Use the attached module like this:
>
> #yourmodule.py
> import wx
> from event_kwargs import *
>
> ... your code ...
>
> self.ok_button = wx.Button(self, -1, "Ok", EVT_BUTTON=self.OnOk)
>
> ...more code...

I _like_ it.  Very clever!

> The only testing I've done is in the "if __name__ == '__main__'" part of 
> the module. I *haven't* tested all the widgets and events, but they 
> should theoretically work.

I'll certainly give it a try. Thanks!

-- 
Grant Edwards                   grante             Yow!  I'm in LOVE with
                                  at               DON KNOTTS!!
                               visi.com            



More information about the Python-list mailing list