473,569 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

True standard Windows app in Python?

If I were to build a Windows application that is a true standard Windows
application in every conceivable way and that adheres to the MS Windows
standards as much as possible (installation, GUI, printing, registry, RTF
etc.), and if portability to other platforms is only a minor concern, ...
would Python be a good choice?

What packages, libraries and modules would you recommend for GUI,
installation, data storage etc.?

Thank you very much in advance for your advice!

--
Pjer.
Jul 18 '05 #1
16 1932
Pjer,

I use Python for sth like that.

GUI, printing, registry, RTF For GUI and Printing I use wxpython

for registry-work I use win32all
rtf is not standardized in any way. It is documented. But you should not
expect the dominating word processor to adhere to this documentation. But
.... it's only text, so it's possible to deal with it.
installation ,

Installation: I just create an exe with py2exe and copy the contents of the
distribution directory. To do this in a "Microsoft conformant way" there is
a great bunch of installers availible; some even generate .MSI foramt.
McMillanInstall er provides sth. quite similiar.

Jul 18 '05 #2
Hello Pjer,
If I were to build a Windows application that is a true standard Windows
application in every conceivable way and that adheres to the MS Windows
standards as much as possible (installation, GUI, printing, registry, RTF
etc.), and if portability to other platforms is only a minor concern, ...
would Python be a good choice?

What packages, libraries and modules would you recommend for GUI,
installation, data storage etc.?

The combination I use at work is:
Python + wxPython + win32all + py2exe + NSIS Installer.

Works like a charm, native looking Windows application in no-time.

HTH.
Miki
Jul 18 '05 #3
On Sun, 28 Dec 2003 14:28:42 +0100, Pjer Holton
<no************ @se.invalid> wrote:
If I were to build a Windows application that is a true standard Windows
application in every conceivable way
It depends on what the app does, there are some things you simply
can't do with python in Windows even with winall installed. But
then again there are things you can't do with MFC and C++. It
depends what you are aiming for.
and that adheres to the MS Windows
standards as much as possible (installation, GUI, printing, registry, RTF
etc.),
If you want to get the Windows "kite-mark" then probably Python
is not the best solution, then again if you want to produce it
quickly and cheaply... Pick the tool for the job. Most commercial
apps on Windows are still written in C++ for performance reasons
and because you get access to all the windows stiuff when you
need it. But that comes at a significant price in terms of
effort.
What packages, libraries and modules would you recommend for GUI,
installation, data storage etc.?


If you do go down the Python route I'd recommend either the MFC
stuff in winall, or maybe Qt or wxPython. They all use the native
toolkit/API under the covers.

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #4
On Sun, 28 Dec 2003 14:28:42 +0100, Pjer Holton wrote:

If I were to build a Windows application that is a true standard Windows
application in every conceivable way and that adheres to the MS Windows
standards as much as possible (installation, GUI, printing, registry, RTF
etc.), and if portability to other platforms is only a minor concern, ...
would Python be a good choice?


In your situation (i.e. trying to build a Windows application which
is "standard in every conceivable way"), I would not use Python.

If you do not want to use C++ on Windows, C# (.NET) should be a
good solution for you. You even might have a look at the Python
for .NET solutions (in the near future).

HTHomas

Jul 18 '05 #5
Thomas Dorn <th*********@ph reaker.net> writes:
In your situation (i.e. trying to build a Windows application which
is "standard in every conceivable way"), I would not use Python.


Doesn't using the mfc library (like PythonWin does) enable creating
applications that are "standard in every conceivable way"?

--
Ville Vainio http://www.students.tut.fi/~vainio24
Jul 18 '05 #6
On Mon, 29 Dec 2003 15:35:56 +0200, Ville Vainio wrote:
Thomas Dorn <th*********@ph reaker.net> writes:
In your situation (i.e. trying to build a Windows application which
is "standard in every conceivable way"), I would not use Python.


Doesn't using the mfc library (like PythonWin does) enable creating
applications that are "standard in every conceivable way"?


Even if there are wrappers for things like the MFC library, I would
not say that Python is a "good choice" for writing Windows applications
as defined by Pjer (and Pjer was asking whether it Python is a "good
choice" for his kind of projects or not).

I use Python for 80%+ of my projects (mostly cross-platform) and
would normally recommend it for almost any project; but considering
the various Microsoft OS (incl. Longhorn) and their differences, I
think using C#/.NET (or maybe even C++) is a better choice for some-
one in Pjer's situation.
Jul 18 '05 #7
Thomas wrote:
On Sun, 28 Dec 2003 14:28:42 +0100, Pjer Holton wrote:

If I were to build a Windows application that is a true standard Windows
application in every conceivable way and that adheres to the MS Windows
standards as much as possible (installation, GUI, printing, registry, RTF
etc.), and if portability to other platforms is only a minor concern, ...
would Python be a good choice?


In your situation (i.e. trying to build a Windows application which
is "standard in every conceivable way"), I would not use Python.


Why?

-Dave

Jul 18 '05 #8
Thomas wrote:
On Mon, 29 Dec 2003 15:35:56 +0200, Ville Vainio wrote:
Thomas Dorn <th*********@ph reaker.net> writes:
In your situation (i.e. trying to build a Windows application which
is "standard in every conceivable way"), I would not use Python.
Doesn't using the mfc library (like PythonWin does) enable creating
applications that are "standard in every conceivable way"?


Even if there are wrappers for things like the MFC library, I would
not say that Python is a "good choice" for writing Windows applications
as defined by Pjer (and Pjer was asking whether it Python is a "good
choice" for his kind of projects or not).


Why? I use Python for writing Windows applications all the time (installers,
registry, COM access, etc, etc) and it works really well.
I use Python for 80%+ of my projects (mostly cross-platform) and
would normally recommend it for almost any project; but considering
the various Microsoft OS (incl. Longhorn) and their differences, I
think using C#/.NET (or maybe even C++) is a better choice for some-
one in Pjer's situation.


Can you give a specific example of how the various OSs cause problems for
Python but not for other languages?

-Dave
Jul 18 '05 #9
Alan wrote:
On Sun, 28 Dec 2003 14:28:42 +0100, Pjer Holton
<no************ @se.invalid> wrote:

If you want to get the Windows "kite-mark" then probably Python
is not the best solution
Why? Just curious, but what specifically are you thinking of? The OP's question
was pretty vague, so it's hard to tell what the question was really about.
quickly and cheaply... Pick the tool for the job. Most commercial
apps on Windows are still written in C++ for performance reasons
Hmmm... most Windows programs are purely event driven and therefore spend
oodles and oodles of time idle waiting for user input. If in fact most are
still written in C++ I'd say it has more to do with habit and/or tools like
Visual Studio rather than because of performance reasons.
and because you get access to all the windows stiuff when you
need it.


That's what ctypes is for. :)

-Dave
Jul 18 '05 #10

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

Similar topics

46
4191
by: Scott Chapman | last post by:
There seems to be an inconsistency here: Python 2.3.2 (#1, Oct 3 2003, 19:04:58) on linux2 >>> 1 == True True >>> 3 == True False >>> if 1: print "true" ....
1
2280
by: Mark McEahern | last post by:
I just wrote a very simple wrapper for the PayFlow Pro SDK (see below). A friend of mine did this before, but I didn't have access to his source, so I took it as a learning opportunity for me to write a C wrapper. I did a little searching to see whether anyone had done anything like this for Python. I didn't find anything. I did find...
18
1661
by: Nicola Mingotti | last post by:
Hi , I obtained this result : ------ >>> '1' > 1 True ------ with python2.2.3 and 2.3.3 . (Yes , in python 2.2 i get 1 instead of True)
15
2259
by: Ville Vainio | last post by:
Pythonic Nirvana - towards a true Object Oriented Environment ============================================================= IPython (by Francois Pinard) recently (next release - changes are still in CVS) got the basic abilities of a system shell (like bash). Actually, using it as a shell is rather comfortable. This all made me think... ...
51
2985
by: Reinhold Birkenfeld | last post by:
Hello, at the moment python-dev is discussing including Jason Orendorff's path module into the standard library. Do you have any other good and valued Python modules that you would think are bug-free, mature (that includes a long release distance) and useful enough to be granted a place in the stdlib? For my part, ctypes seems like a...
90
3390
by: John Salerno | last post by:
I'm a little confused. Why doesn't s evaluate to True in the first part, but it does in the second? Is the first statement something different? False print 'hi' hi Thanks.
9
2612
by: cniharral | last post by:
Hi, I'm interested in printing out coloured lines of my application and I don't know what to use. Can anybody give me an idea?? Regards. Carlos Niharra López
10
3554
by: John Nagle | last post by:
Here are three network-related exceptions. These were caught by "except" with no exception type, because none of the more specific exceptions matched. This is what a traceback produced: 1. File "D:\Python24\lib\socket.py", line 295, in read data = self._sock.recv(recv_size) timeout: timed out
2
4263
by: Kevin D. Smith | last post by:
I would like to move files and directories to the Recycle Bin on Windows from Python. I have found some older articles describing how to do this, but they require additional packages to be installed. I'm working on a plugin for an existing project and only have the standard library to work with. Is there a way to use the Recycle Bin using...
0
7703
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
7618
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...
0
8132
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...
1
7678
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
7982
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...
0
6286
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
5222
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
944
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.