Quote:
|
Originally Posted by megamind5005
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?
|
Actually a lot of the programs written in Python with a GUI are still interperted. The files that you download are .py files. Souce files, not binarys. If you were to make a bainary of a file with GUI the filesize would be huge. There is a packaging system that comes with Python to put your .py files in an executavle for simplifying setup, but for those to work, the person needs the Python runtime. Python is a language that cannot be directly converted into machine code.
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.