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?
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).
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.
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.
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.
bartonc 6,596
Recognized Expert Expert
maybe som of us should sit down and do a Tkinter book ;-)
-kudos
How 'bout a PyWin book?
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?
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
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
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.
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.
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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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,...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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>...
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |