473,770 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1923
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*******@comc ast.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*******@comc ast.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********@gmai l.com
mail: ca********@yaho o.com
Jul 18 '05 #5

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

Similar topics

16
2321
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 practice with under Windows is rebooting it. My app contains three different programs (say alice.py, bob.py, and carol.py) that need to be independently launchable, and a dozen or so other .py files that get imported into those first three. What...
11
3764
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 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
3
4295
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 to make sure I don't miss anything. So, I will leave the question wide open, what are your considerations for developing a web application vs. a windows application? -- Thanks, Brad Simon
7
1854
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 been largely discussed many times over and I don't need to start another discussion, just some reference to some existing materials. I've been searching for hours and I must be having brain problems as I'm not coming up with much with the keywords...
8
1657
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 parent window with child windows can only be done in c++ and mfc and there's nothing else in .net that is meant to be used like that? It seems to be that c# should be used for either form based windows apps, console apps, and web apps (also...
3
1635
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 Host Headers to differentiate between them all. In IIS, if I redirect to another server running Windows 2003 Server, the 2.0 applications work very well.
3
4839
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 application versus a Windows Application. I know all the standard reasons, Availability, Easier Deployment (although that is really not an issue any more with Windows Apps in .NET), etc, I'm looking for more better reasons why we should develop...
16
20689
by: Daniela Roman | last post by:
Hello, can someone tell me the main differences between the web and windows based applications? thank you
4
1959
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 ASP.NET framework. How versions can I install? Can I install ASP.NET 2.0? And ASP.NET 3.5? This is the desired framework
0
10254
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10099
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10036
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8929
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7451
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3
2849
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.