Re: alternatives to mswgui

Robin Becker <[email protected]> Fri, 15 Nov 2002 12:41:41 +0000
Newsgroups gmane.comp.python.anygui.devel
Message-ID <[email protected]>
In article <[email protected]>, Thomas Heller <[email protected]>
writes


Gurk ctypes is too new for me to grok the fullness quite yet :)

Anyhow are you hacking on this right now?


>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
>

-- 
Robin Becker


-------------------------------------------------------
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