[python-win32] Does Python need a native Windows GUI toolkit?
Thomas Heller
theller at ctypes.org
Mon Dec 1 08:47:06 CET 2008
Simon Dahlbacka schrieb:
> On Fri, Nov 28, 2008 at 10:46 PM, Thomas Heller <theller at ctypes.org> wrote:
>> Does Python need a native, pure Python, Windows GUI toolkit, one that uses
>> win32 api calls directly to use native windows controls?
>
> How does it differ from http://venster.sourceforge.net/ ?
The toolkit that I have written uses some good ideas (imo) from pythoncard;
it was born approximately at the same time. Some examples:
Named widgets: the container window has a .components collection which allows
to access subwindows by name.
Binding of event handlers by name: If a button is named OKButton for example
then a 'on_OKButton_clicked(self, event)' method implemented in the container
window is called when the button is clicked. If it is not defined, a
'on_clicked(self, event)' method is tried.
Easy access to the raw windows events: The button window itself
implements a '_BN_CLICKED(self, hwnd, msg, wParam, lParam)' method that can be
overridden if needed.
--
Thanks,
Thomas
More information about the python-win32
mailing list