Re: alternatives to mswgui
Thomas Heller <[email protected]> 15 Nov 2002 11:39:10 +0100
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <[email protected]> |
The other case where you use c_string can easily be simplified as well.
Instead of
t = self._wndclass
if t is None:
self._i_wndclass = 0
elif type(t) is type(''):
self._i_wndclass = c_string(t)
elif type(t) is type(0):
self._i_wndclass = t
widget = user32.CreateWindowEx(self._win_style_ex,
self._i_wndclass,
0,
self._win_style,
0,
0,
10,
10,
parent,
0, # hMenu
0, # hInstance
0)
one should write
widget = user32.CreateWindowEx(self._win_style_ex,
self._wndclass,
0,
self._win_style,
0,
0,
10,
10,
parent,
0, # hMenu
0, # hInstance
0)
Thomas
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html