![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programmer
Join Date: Dec 2004
Location: UK
Posts: 53
Rep Power: 4
![]() |
What's with the baggage? py2exe/compilers
Hi people, i've just been reading some of the threads about the py2exe thing. everytime someone asks about turning their .py into .exe this comes up and they say that it actualy packs the python.exe and other stuff into the executable... isn't that unnecessary? I dont know too much about this (only started learning python and Java recently) but i'm sure thats not how it would be done professioanlly, like with the day-today exec.s that everyone uses. Is there actually a way to turn code into executable, or have i missed something?
BTW, how hard is it to advance from console programming to GUI programming, in python? |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Feb 2005
Posts: 54
Rep Power: 4
![]() |
I don't know any exact details, but I would think that since Python is an interpreted language, you would need the python interpreter (aka python.exe) bundled with an executable in order to interpret your program.
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Dec 2004
Location: UK
Posts: 53
Rep Power: 4
![]() |
i know, but thats my point: surely there must be a way of not having to have the interpreter make the file bigger. For example, some of the text editors on python.org are supposedly made in python (with GUI) but they dont come with the interpreter.
Anyone know more than me about this? oh and what about my GUI question? |
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
I'm sure with A LOT (a few years of work with a development team) you might be able to pull this off, and if you did you would be the president of the Python community. For almost all interperted languages, you need the interperter. And for GUI, you could go for either Tkinter which comes with Python (but a lot of people say it's confusing as hell), but if not that, I would use wxWindows which seams to be the next logical choice. There are however wrappers for almost every gui toolkit you can think of. GTK, QT, Fox, and a few propritary ones. For developing these applications there is BOA, but if you really want to get in touch with your inner UI self, learn how to code it all by hand so you actually understand it, instead of letting a program do all the work. |
|
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
For GUI programs use the free Boa Constructor, it has a visual form builder like visual C++ or C#.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#6 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Python would be a mess to translate to machine code. Yuck. It could be done, but the innards of x86 assembly are very unpleasant...moreso when trying to generate it.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Dec 2004
Location: UK
Posts: 53
Rep Power: 4
![]() |
ah, i see. So i can do GUI, but i gotta use either BOA or GTK (they seem like the most popular). got it.
something else that i've just found out about: is it possible to use python as an alternative for PHP for websites? I was thinking of making a little forum just to see if i can, but i've just started learning Python and wanna put it to some use. i'm not lazy,though, i'll learn PHP later! BTW, Now out of interest which is the next simplest language to learn for a novice that can be compiled into binary as well? |
|
|
|
|
|
#8 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Of course it is - you just need a host that supports it.
|
|
|
|
|
|
#9 |
|
Programmer
Join Date: Dec 2004
Location: UK
Posts: 53
Rep Power: 4
![]() |
err.. any of u guys know of any hosts that support python for that kinda stuff?
|
|
|
|
|
|
#10 |
|
Expert Programmer
|
All you need is a host that has Python on their computers. I think it's more common then not. Almost all the hosts I've scene that run linx have a version of Python installed. YOu write a Python CGI script the same way you would with perl. There is a whole class for python cgi also that comes with it.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|