473,386 Members | 1,734 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,386 software developers and data experts.

making windows apps

I am new to python and working my way through the van Rossum tutorial. I
am cursios though about if you can program windows with python? I know I
shouldn't worry about this right now but I am curious. If so, is there any
recommended tutorials on this. I know I can search google but i figured I
would see what some people who know the language well would recommend.
One last thing, in order for a program I write in python to run on
someones computer, they have to have the python interpreter installed? And
if so, wouldn't most people not have it installed since they wouldn't be
programming in it. I know this is probably an uber nube question, but that's
what I am right now. Hopefully no one will get pissed off and give some
smart ass comment about how stupid my question is (sorry but most of the
time thats what I get when I post in a newsgroup lol)

-Zach
Jul 18 '05 #1
4 1900
Zach Shutters wrote:
I am new to python and working my way through the van Rossum tutorial. I
am cursios though about if you can program windows with python?
Yes, certainly. If you follow the newsgroup, you'll often see
discussions of various ways of doing GUI programming, including
one that was just started and to which I just posted a small
sample program just now.
I know I can search google but i figured I
would see what some people who know the language well would recommend.
Well, there's always people here willing to answer questions, but
it is *really* appreciated when people do take the time to check
with Google first. For example, it would easily have found you
this page http://www.metaslash.com/brochure/tutorial/ or this
one http://www.python.org/doc/faq/gui.html.
One last thing, in order for a program I write in python to run on
someones computer, they have to have the python interpreter installed?
Yes, at some point, unless you use Jython to turn the program into
Java .class files in which case they need the Java runtime
installed instead.
And
if so, wouldn't most people not have it installed since they wouldn't be
programming in it.
Most people who are interested in distributing their Python programs
either don't mind having their users download Python (it's trivially
easy to do) or they package up their program with tools such as py2exe,
which create executables that bundle the interpreter. They also
generally use other tools such as InnoSetup to build nice installers.
The end users cannot tell the difference and don't have a clue what
language their application is programmed in, so you shouldn't worry
about this issue much.
Hopefully no one will get pissed off and give some
smart ass comment about how stupid my question is (sorry but most of the
time thats what I get when I post in a newsgroup lol)


This newsgroup is different. On the other hand, it is *really*
appreciated when people take the time to research a little
themselves, so it's a good thing you are doing the tutorial
now. Consider also reading through the FAQ at the www.python.org
site (skim it quickly the first time, as you won't understand
many of the entries, but you'll remember some of them anyway and
can go back later when you know more and you'll understand much
more of them). You might also keep Google Groups in mind, so
that you can quickly check the archives for this newsgroup when
you are thinking of asking questions in the future. It's *really*
appreciated. ;-)

-Peter
Jul 18 '05 #2
Yes, you can download a windows installer for python and just double
click to install it :P

If you want to get your python code to run on a computer without the
interpreter, you can make an .exe file from your code. There are
several ways to do this, but I can't really direct you there since I
haven't done it myself yet.

-Josh
On Fri, 10 Sep 2004 07:52:55 -0700, Zach Shutters <zs*******@comcast.net> wrote:
I am new to python and working my way through the van Rossum tutorial. I
am cursios though about if you can program windows with python? I know I
shouldn't worry about this right now but I am curious. If so, is there any
recommended tutorials on this. I know I can search google but i figured I
would see what some people who know the language well would recommend.
One last thing, in order for a program I write in python to run on
someones computer, they have to have the python interpreter installed? And
if so, wouldn't most people not have it installed since they wouldn't be
programming in it. I know this is probably an uber nube question, but that's
what I am right now. Hopefully no one will get pissed off and give some
smart ass comment about how stupid my question is (sorry but most of the
time thats what I get when I post in a newsgroup lol)

-Zach

--
http://mail.python.org/mailman/listinfo/python-list

Jul 18 '05 #3
Zach Shutters writes:
I am new to python and working my way through the van
Rossum tutorial. I am cursios though about if you can program
windows with python?
Yes you can, in fact, no matter what you mean by "windows".
I know I shouldn't worry about this
right now but I am curious. If so, is there any recommended
tutorials on this. I know I can search google but i figured I
would see what some people who know the language well would
recommend.
Well, now I need to know what you mean by "windows". I think you
mean you want to program a graphical user interface, in which
case you need to continue on with your tutorial for now but
then take good looks at the three main user-interface toolkits
for Python that are cross-platform:

+ Tkinter (included with Python, the easiest to learn and work
with).
+ wxPython (the best choice, but could be a steep learning curve
and the API is in rapid flux)
+ PyQt (the most polished, but licensing issues are abundant)

One last thing, in order for a program I write in
python to run on someones computer, they have to have the
python interpreter installed?
Yes.
And if so, wouldn't most people
not have it installed since they wouldn't be programming in
it.
Most if not all Linux and Macintosh systems come with Python
installed already. For Windows, it is an easy install. There
are also third-party utilities to wrap your Python program into
an executable, complete with the Python interpreter so no
separate install would be necessary. Google for 'py2exe' for a
start.
I know this is probably an uber nube question, but that's
what I am right now. Hopefully no one will get pissed off and
give some smart ass comment about how stupid my question is
(sorry but most of the time thats what I get when I post in a
newsgroup lol)


Keep reading the tutorial, and refrain from asking stupid
questions, and you'll be fine. :)

--
Paul McNett
Independent Software Consultant
http://www.paulmcnett.com
Jul 18 '05 #4
On Fri, 10 Sep 2004 07:52:55 -0700, Zach Shutters <zs*******@comcast.net> wrote:
I am new to python and working my way through the van Rossum tutorial. I
am cursios though about if you can program windows with python? I know I
shouldn't worry about this right now but I am curious. If so, is there any
recommended tutorials on this. I know I can search google but i figured I
would see what some people who know the language well would recommend.
Python can be used to write graphical native applications for both
Windows and Linux. In any case, you need to choose first what
windowing library (or toolkit) you're going to use. If you are used to
the Windows way of doing things, relax -- the only difference is that
if you use MS tools, you have no choice but to use the toolkit that
Microsoft provides (so you never knew that it was possible to have a
choice), but now you have a few options.

The main windowing libraries available for use with Python are:

-- Tk
-- wxPython
-- Qt

I suggest that you take look at wxPython (at www.wxpython.org). It's
cross platform, which means that an app written using it will run
without changes in Linux and Windows systems while keeping the same
look and feel. Tk is easy to use, and well supported in Python, but I
prefere wxPython (that's a personal opinion, and your mileage may
vary). As for Qt, the library is excellent, but the it's only
available under a commercial license for Windows.

The next step is to choose a programming environment. Again, if you
are used to VB or Delphi, you never knew that you had a choice here,
because these tools pack everything -- the language, the supporting
libraries, the windowing libraries, and the programming environment
into a single package. It would really be nice to have such a pack for
Python (and in fact, there are a some good, but high-priced commercial
options available; for example, BlackAdder or Wingz); however, if
you're using only free tools, then the selection is relatively
limited, but still useful enough for most needs.

If you took my advice and selected wxPython, the two best choices for
the IDE are Boa Constructor and PythonCard. The former is a very
advanced IDE, but it's still in development. PythonCard is simpler and
a little bit easier to use, but it's also not released yet -- only the
development version is available.
One last thing, in order for a program I write in python to run on
someones computer, they have to have the python interpreter installed? And
if so, wouldn't most people not have it installed since they wouldn't be
programming in it. I know this is probably an uber nube question, but that's
what I am right now. Hopefully no one will get pissed off and give some
smart ass comment about how stupid my question is (sorry but most of the
time thats what I get when I post in a newsgroup lol)


There are easy ways to pack everything that is needed to distribute
any type of Python program into a single installer. I don't have the
pointers here but I've done it before and it's a snap. It works for
any type of app, including Windows apps; the installation kit
generates a single exe file for easy distribution.
--
Carlos Ribeiro
Consultoria em Projetos
blog: http://rascunhosrotos.blogspot.com
blog: http://pythonnotes.blogspot.com
mail: ca********@gmail.com
mail: ca********@yahoo.com
Jul 18 '05 #5

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

Similar topics

16
by: Paul Rubin | last post by:
As what must be penance for something or other, I'm needing to release a Python app for use under Windows XP. Please be gentle with me since I'm a Un*x weenie and the only thing I've had much...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
3
by: Brad Simon | last post by:
My Client asked me to put together some reasons as to what determines if an application would be developed as a windows application or web application. I have started working on it, but I would like...
7
by: Antony | last post by:
Excuse my ignorance, but anyone have any links to some good white papers discussing the pros/cons for developing a Web-Based app versus a windows/client/server app? I would think this topic has...
8
by: Bf | last post by:
I was creating test projects using c# and was surprised that there seems to be only a form based windows applications available. Is it safe to assume that classic window applications that utilize a...
3
by: chicken butt | last post by:
Hi - I am trying to move some of my web apps from my development machine running XP PRO SP2 to one of our Windows 2000 server boxes. I have created a new site for each of the apps and am using...
3
by: dcbud | last post by:
I'm hoping to get a response from developers with experience in both developing applications for Windows and the Web using VS.NET2005. I'm looking for input as to why we would want to develop a web...
16
by: Daniela Roman | last post by:
Hello, can someone tell me the main differences between the web and windows based applications? thank you
4
by: Hrsoft | last post by:
Dear Friends My developer environmment has a Windows 2000 SP4 Server, and I canīt to update to 2003 or 2008, for reasons of... money. But, I need to install in this 2000 Server SP4 the...
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:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
Oralloy
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,...
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.