473,657 Members | 2,407 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 2421
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\python win\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

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

Similar topics

1
3653
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 information to make the bridge between this book and the MFC (black hole for me) in depth. Any advise on good reading, and some python examples ?
3
12262
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, I get this message displayed on my browser window: %1 is not a valid Win32 application.
0
2123
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 org, However, I haven't gotten a reply for a week or so, and figured out I could post here for a larger audience, then. Original message follows: Hello,
2
2762
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 then replaced "single.exe" by "hello.exe" in setup.nsi. Created hello.py as follows:
5
6765
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 cause. If I could create a large file that could be encrypted, and maybe add files to it by appending them and putting in some kind of delimiter between files, maybe a homemade version of truecrypt could be constructed. Any idea what it...
8
1749
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 from Borland Delphi to Visual Studio and C#. We have a lot of applications that we do not have time to recode to .NET, so we are planning to do all "new" developments in C#. And this is where my question pop up:
2
1906
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 problem was reported in another thread here by Peter Hansen http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/5c2b4b2a88c8df4/f216739705c9304f?lnk=gst&q=simplejson&rnum=5#f216739705c9304f Is this considered an important enough...
5
2484
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> <duration>1800</duration> </appointment>
0
4604
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 -------------------------------------------------------------------------------------- @echo off SETLOCAL
0
8411
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8613
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1732
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.