user537488
user537488

Reputation: 947

Python and native GUI

I checked some other question and websites, and I've come to the conclusion that Python does allow (correct me if I'm wrong) you to make GUI programs using different cross-platform toolkits like Qt, wxWidgets and some others. But what if I don't want cross-platform portability. Primary, I want to develop native application using native libraries like Cocoa for Mac, native libraries of Windows for window, GTK for GNOME and Qt for KDE apps different with different code. Different code is not an issue here. Can I do this? I just don't need cross-platform portability but I need to make native apps?

Any insights from pro programmers ?

Upvotes: 2

Views: 2140

Answers (3)

bgporter
bgporter

Reputation: 36574

On Windows, the PyWin32 project has bindings to the Win32 API (and to MFC, if you already know that.)

On OS X, you can use PyObjC to write Cocoa programs -- see their examples

Edit: Note that in general, I agree with @Ignacio's advice here. In most cases, it's hard to justify the added expense & hassle of maintaining separate per-platform code bases. OTOH, I've had clients reject the use of wx on Mac projects because they say it doesn't generate apps that look like real Mac apps.

Upvotes: 3

atzz
atzz

Reputation: 18010

Check out Venster. It is a ctypes-based wrapper over Win32 API.

Though I must confess that I never used it, just looked over, and used its WinCE port (VensterCE) a little bit.

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799520

Don't waste your time. Use wxPython, which will use the native toolkit for you.

Upvotes: 8

Related Questions