473,503 Members | 1,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a Win32 Hello World with Python?

2 New Member
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
11 2411
bartonc
6,596 Recognized Expert Expert
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
rlee3828
2 New Member
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
6,596 Recognized Expert Expert
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
127 Recognized Expert New Member
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
6,596 Recognized Expert Expert
maybe som of us should sit down and do a Tkinter book ;-)

-kudos
How 'bout a PyWin book?
Nov 14 '06 #6
kudos
127 Recognized Expert New Member
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
6,596 Recognized Expert Expert
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
6,596 Recognized Expert Expert
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
6,596 Recognized Expert Expert
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
87 New Member
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
6,596 Recognized Expert Expert
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

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

Similar topics

1
3651
by: Gilles Lenfant | last post by:
Hi, I bought and read most of (excellent) Mark Hammond's book, Python programming on Win32. I started to make some sophisticated "hello world" app using win32ui (...) but I need some more...
3
12244
by: Mark Space | last post by:
Hi all, I followed some simple instructions to add python scrips to IIS as a cgi. The instructions were here: http://www.e-coli.net/pyiis.html Unfortunately, when I try to run a test script,...
0
2110
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python...
2
2755
by: Podi | last post by:
I followed the instructions from http://starship.python.net/crew/theller/moin.cgi/SingleFileExecutable Copied the second setup.nsi, setup.py, single.py and everything works like a champ. I...
5
6725
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
8
1742
by: Claus | last post by:
Hi all, I am new to C#, .NET and Visual Studio but I have been coding professionally for more than 10 years, so I am not a complete newbe :-) At my work we are now in the process of switching...
2
1888
by: Pierre Rouleau | last post by:
Hi all, When using Python 2.4.x on a Win32 box, marshal.loads(marshal.dumps(1e66666)) returns 1.0 instead of infinity as it should and does under Python 2.5 (also running on Win32 ). This...
5
2479
by: kyosohma | last post by:
Hi all, I am attempting to create an XML document dynamically with Python. It needs the following format: <zAppointments reminder="15"> <appointment> <begin>1179775800</begin>...
0
4595
by: devito | last post by:
hi there, for some days i try to build the boost.python tutorial "hello world" without bjam on winxp by using mingw. so i wrote a *.bat-file like the following: // --- snip...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.