[PyWin32] "Hello, world"?
mail at timgolden.me.uk
Wed Oct 28 11:17:51 CET 2009
Gilles Ganault wrote:
> I'm reading O'Reily's "Python Programming on Win32", but couldn't find
> a simple example on how to create a window with just a label and
Well, you might mean this:
win32api.MessageBox (None, "Hello, World!", "Greetings")
but that obviously has limited possibilities for growth.
You can change the messages; you can play with combinations
of buttons; but that's about it.
Although I can provide a cut-down example, I think that these days
it would be quite rare to produce a raw-Windows GUI: you'd either
be using a .NET technology like the WPF or leveraging (as they
say in other parts of the world) an existing toolkit such as
Qt, wx or <insert your presentation toolkit of choice here>.
I suppose what I'm saying is that knowing the way in which
raw Windows GUI works is becoming increasingly irrelevant.
But I'm happy to produce something if you're still keen.
More information about the Python-list