473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Why no maintained wrapper to Win32?

Hello

It looks like the development of the PyWin32 wrapper to the
Win32 API stopped years ago, which is too bad because it means that
writing GUI apps in Python even just for Windows means adding
megabytes when using eg. wxWidgets.

How come no one too over this project, or offered another wrapper? Or
even better, why no company offered a RAD IDE so that we could write
GUI apps in Python for Windows? It's such a waste not being apple to
just send someone a small EXE.

Thanks.
Jul 28 '07 #1
6 2095
It looks like the development of the PyWin32 wrapper to the
Win32 API stopped years ago, which is too bad because it means that
writing GUI apps in Python even just for Windows means adding
megabytes when using eg. wxWidgets.
Why does it mean that? The Win32 APIs for GUI are up-to-date; they
don't need further development. Win32 itself stopped years ago.
You can write GUI applications with PyWin32 just fine.

Regards,
Martin
Jul 28 '07 #2
On Jul 30, 6:07 am, Gilles Ganault <nos...@nospam.comwrote:
For people who don't konw the Win32 API and don't know C... is the
O'Reilly book above the best source of information on how to write
Win32 GUI apps in Python?
Why inflict suffering on yourself with MFC when you can use wxPython
or PyGTK?

Sure, you could use ctypes to make calls into user32.dll, gdi32.dll
and kernel32.dll. Then you can program Python GUIs using the plain
Win32 API, avoiding PyWin32's MFC or wxPython. But who would do such a
thing?

Jul 30 '07 #3
On Sun, 29 Jul 2007 21:49:04 -0700, sturlamolden
<st**********@yahoo.nowrote:
>Why inflict suffering on yourself with MFC when you can use wxPython
or PyGTK?
Because I'd like to avoid having to pack several MB + having to
install the toolkit. Considering the size of the typical Python
script, it seemed overkill.
>Sure, you could use ctypes to make calls into user32.dll, gdi32.dll
and kernel32.dll. Then you can program Python GUIs using the plain
Win32 API, avoiding PyWin32's MFC or wxPython. But who would do such a
thing?
So the PyWin32 interface doesn't make it easier to program Win32 GUI
apps? It's just C that looks like Python?

Guess I have the answer as to no one seems to write GUI apps for
Windows natively :-)

Thanks.
Jul 31 '07 #4
Guess I have the answer as to no one seems to write GUI apps for
Windows natively :-)
That's certainly an important factor. If I wanted to ship a small
application, I would write a web server, and run that locally.
GUI programming is so last-century :-)

Regards,
Martin
Jul 31 '07 #5
Gilles Ganault a écrit :
On Sun, 29 Jul 2007 21:49:04 -0700, sturlamolden
<st**********@yahoo.nowrote:
>Why inflict suffering on yourself with MFC when you can use wxPython
or PyGTK?

Because I'd like to avoid having to pack several MB + having to
install the toolkit. Considering the size of the typical Python
script, it seemed overkill.
>Sure, you could use ctypes to make calls into user32.dll, gdi32.dll
and kernel32.dll. Then you can program Python GUIs using the plain
Win32 API, avoiding PyWin32's MFC or wxPython. But who would do such a
thing?

So the PyWin32 interface doesn't make it easier to program Win32 GUI
apps?
Did you ever tried writing a Win32 GUI app in C ?-)

But you should re-read the above more carefully. What I do understand
from it is that PyWin32 adds support for the MFC toolkit (nb: didn't
check myself since I'm not concerned...).
It's just C that looks like Python?

Guess I have the answer as to no one seems to write GUI apps for
Windows natively :-)
Fact is that either the app is a small, casual tool, and then Tkinter is
quite enough, or it's a real, fullblown app and then better to use a
decent (and, if possible, crossplatform) toolkit - like, you know,
wxWidgets !-)

Jul 31 '07 #6
On Jul 31, 4:35 am, Gilles Ganault <nos...@nospam.comwrote:
Because I'd like to avoid having to pack several MB + having to
install the toolkit. Considering the size of the typical Python
script, it seemed overkill.
But you are happy to pack a Python runtime and PyWin32? This is really
a dumb argument.

Sure, you could use ctypes to make calls into user32.dll, gdi32.dll
and kernel32.dll. Then you can program Python GUIs using the plain
Win32 API, avoiding PyWin32's MFC or wxPython. But who would do such a
thing?
So the PyWin32 interface doesn't make it easier to program Win32 GUI
apps? It's just C that looks like Python?
PyWin32 wraps MFC, which is a C++ library for Windows (and Motif) GUI
programming. It is not more 'native' than wxPython. MFC and wxWidgets
does the same job, except that wxWidgets does it better.

PyWin32 does not expose the GUI parts of the 'native' Win32 API
directly. You will have to use ctypes to access that directly.
Guess I have the answer as to no one seems to write GUI apps for
Windows natively :-)
wxPyhton is 'native' enough. Is uses native widgets on Windows (unlike
Qt, GTK and tk).

Jul 31 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thomas Guettler | last post by:
Hi, l= print type(l.__delattr__) # --> <type 'method-wrapper'> I didn't find a corresponding type in the modules "types". Is it missing or am I blind? (Python 2.3.3)
3
by: Ian | last post by:
Has anyone had any experience in writing wrappers for older C libraries? What I'm looking at doing is creating a wrapper C++ object as a front end to an older C library, also the library is not...
1
by: sureshjram | last post by:
Hi all , What is a Wrapper Class in c#?? I am new to this OOPS plz explain it thanks in advance regards Suresh
2
by: Ivan Farkas | last post by:
Is there a way to generate C# Wrapper for Win32 DLL? Ivan Farkas IFarkas@Net-Ramp.com
0
by: Brandon Langley | last post by:
I'm trying to utilize some code written in a C# class library (DLL) via a C++ wrapper. The reason for the C++ wrapper is to make the code available from within a Wise dialog, which only allows...
9
by: WithPit | last post by:
I am trying to create an Managed C++ Wrapper around an unmanaged library which contains C++ code. Some of the unmanaged methods returns an returntype which is of the abstract base type (for...
1
by: BenLeino | last post by:
Hiho, I have a little question regarding mapping Windows Network shares with a Win32 API Wrapper in VB.Net. I build this little Wrapper and anything works quite fine (no errors), but every...
29
by: mastermagrath | last post by:
Hi, Sorry for the possibly silly question. Am i right in saying that the C library i use on a windows machine really utilises the windows API for all its operations e.g. opening files, printing...
9
by: CMM | last post by:
I've been scouring the net for the last few days looking for a way to copy a locked file (create a shadow volume, expose it... that's it) from within my program. I'm aware of the kludgy vshadow.exe...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.