By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,714 Members | 750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,714 IT Pros & Developers. It's quick & easy.

How to create a Win32 Hello World with Python?

P: 2
Hi folks :
I am a Linux device driver guy, I believe Python/Perl style language is going to be my future. So I am exploring Python Win32, now the first thing is Hello world, does anybody know how to create a Win32 Hello World with Python?
Nov 13 '06 #1
Share this Question
Share on Google+
11 Replies


bartonc
Expert 5K+
P: 6,596
Since you're on Linux, wouldn't you rather write portable code using (say) Tkinter or wxPython?... Unless you want to get into the guts of MS bloat... I normally only use win32 if there's no other way (I write apps for windows).
Nov 14 '06 #2

P: 2
Since you're on Linux, wouldn't you rather write portable code using (say) Tkinter or wxPython?... Unless you want to get into the guts of MS bloat... I normally only use win32 if there's no other way (I write apps for windows).
Thank you for replying, actually I am not familiar to Tkinter neither, well I did run into some wxPython resources but Win32 is more popular, right? I am exploring this Python-Windows possibility, next thing is going to be directpython, that is my destination.
Nov 14 '06 #3

bartonc
Expert 5K+
P: 6,596
Thank you for replying, actually I am not familiar to Tkinter neither, well I did run into some wxPython resources but Win32 is more popular, right? I am exploring this Python-Windows possibility, next thing is going to be directpython, that is my destination.
Mark Hammond has done a great service by providing python wrappers to the extensive (bloat, imho) windows win32 API. The COM modules are invaluable for interacting with other apps. There are lots of examples in the docs. That said, documentation of the API itself seems to be left to MS docs (have you ever tried to look up something in an MS manual?).
If you get Stani's Python Editor (http://pythonide.stani.be/) as an example of what wxPython can do, I believe you will see that a minimalist approach to GUI toolkits is more than adequate (it's ideal, imho). There also "hello world" examples for wx (Windows, X (Mac too)) Python.
Tkinter documentation in python manuals is minimal. There's some on the web and a book or two have been published.
Nov 14 '06 #4

kudos
Expert 100+
P: 126
maybe som of us should sit down and do a Tkinter book ;-)

-kudos

Mark Hammond has done a great service by providing python wrappers to the extensive (bloat, imho) windows win32 API. The COM modules are invaluable for interacting with other apps. There are lots of examples in the docs. That said, documentation of the API itself seems to be left to MS docs (have you ever tried to look up something in an MS manual?).
If you get Stani's Python Editor (http://pythonide.stani.be/) as an example of what wxPython can do, I believe you will see that a minimalist approach to GUI toolkits is more than adequate (it's ideal, imho). There also "hello world" examples for wx (Windows, X (Mac too)) Python.
Tkinter documentation in python manuals is minimal. There's some on the web and a book or two have been published.
Nov 14 '06 #5

bartonc
Expert 5K+
P: 6,596
maybe som of us should sit down and do a Tkinter book ;-)

-kudos
How 'bout a PyWin book?
Nov 14 '06 #6

kudos
Expert 100+
P: 126
Hi, good idea, but I think there is a PyWin book already (written by the man himself)



I don't think there are too many Tkinter book though (I recall one), but im not sure anybody is using the library..

-kudos



How 'bout a PyWin book?
Nov 14 '06 #7

bartonc
Expert 5K+
P: 6,596
Hi, good idea, but I think there is a PyWin book already (written by the man himself)

-kudos
Wow! I hadn't seen that one. Great tip kudos! Thanks,
Barton
Nov 14 '06 #8

bartonc
Expert 5K+
P: 6,596
Hi folks :
I am a Linux device driver guy, I believe Python/Perl style language is going to be my future. So I am exploring Python Win32, now the first thing is Hello world, does anybody know how to create a Win32 Hello World with Python?
There is sample code in a folder (on my system it's)
D:\Python25\Lib\site-packages\pythonwin\pywin\Demos
Nov 14 '06 #9

bartonc
Expert 5K+
P: 6,596
Hi, good idea, but I think there is a PyWin book already (written by the man himself)



I don't think there are too many Tkinter book though (I recall one), but im not sure anybody is using the library..

-kudos
Yikes! $169.67 New! Ouch. Probably worth it though, and Mr. Hammond certainly deservers to make some money for all the work he has done.
Nov 17 '06 #10

Subsciber123
P: 87
If you want to easily create a GUI, use wxPython as the GUI module.
PythonCard is a very easy to use GUI builder for wxPython.
Dec 1 '06 #11

bartonc
Expert 5K+
P: 6,596
If you want to easily create a GUI, use wxPython as the GUI module.
PythonCard is a very easy to use GUI builder for wxPython.
So true! I use wx + Boa Constructor. I'm always glad to see people using wx.
Dec 1 '06 #12

Post your reply

Sign in to post your reply or Sign up for a free account.