473,554 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2108
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**********@y ahoo.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**********@y ahoo.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
1701
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
10235
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 thread-safe, which I have to somehow make safe for multi-threading (CRITICAL_SECTIONS maybe) for integration into a server. Thanks, Ian
1
2150
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
3593
by: Ivan Farkas | last post by:
Is there a way to generate C# Wrapper for Win32 DLL? Ivan Farkas IFarkas@Net-Ramp.com
0
2204
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 calls to WIN32 DLL functions. In my testbed, I have C#.DLL and C#Wrapper.DLL sitting in my temp directory. I am trying to invoke them from Wise,...
9
2408
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 example unmanagedObject). How can i convert this to the managed abstract basetype? Hope somebody can help me Thanx
1
1061
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 networkshare I pass to the API results in an Error that says "invalid networkshare". How can this be? I am 100% shure that my UNC is correct. Is...
29
2192
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 to the console etc.etc. Thanks in advance
9
2410
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 commandline tool, but what I really need is to be able to do it in managed code or via API's. I'm also aware of the VSS SDK so I don't need a...
0
7612
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...
0
7536
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7576
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...
0
6163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3583
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...
0
3564
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2027
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
1
1147
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
853
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...

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.