Re: [SLE] Question for you programmers and those who onlye tinker w/ programming. RE Python and QT , esp in concert.
Many times over I hear or see something like... "you should try foo, it's a really easy way to make your desktop dance to your tune" Be sure you have Python AND QT installed ; and I believe, if memory serves , the QT is something specifically tied to Python, or the other way around. Truth to say; I may not have the specifics on the Qt module because my brain is misfiring today.. <sigh> Migraines would be a heckova weapon if only they could harness it.
<snip> Qt ( www.trolltech.com ) and Python ( www.python.org ) are both programming languages. That is all they have in common. ( See the history of programming here: http://www.oreilly.com/news/ languageposter_0504.html ) Python is a scripting language, which means it is not compiled, but runs as part of an interpreter. Here's a "Hello World" script in Python: print "Hello, world!" You access a python script by using the command python then the script. For example, "python ./mycoolscript.py" would run the mycoolscript application. It is open source, which means there's no commercial entity behind it. It is considered one of the "P" applications in the LAMP stack - Linux, Apache, MySQL and Python/Perl/PHP - that you may have heard of. Qt is a C++ compiler and set of tools (called "widgets") from Tolltech company in Norway. It is the language used to write KDE and Opera. ( ttp://en.wikipedia.org/wiki/Qt_(toolkit) ). Unlike Python, a Qt applicaiton is compiled, which means it is turned from an English-like syntax to a machine readable form. Here's a "Hello World" app in C++ #include <iostream> int main() { std::cout << "Hello, world!\n"; } Once compiled, you cannot directly edit a Qt application. (Don't get me started with Resource Editors.) Unlike Python, Qt is not pure Open Source. The company, Trolltech, is very much behind the OSS movement but also needs to make money. This caused a major rift between the "purists" and those who wanted a good desktop. Hence the reason the Gnome desktop is written with GTK+, another C++ compiler which is completely open source. Now that you've had an eyeful, here's the answer to your question. Some apps may need one or another library loaded to provide supporting information. I typically load all Qt and Python (as well as GTK+) libraries on my SUSE installation in order to ensure I can run everything. Compared to my many gigs of MP3/OGG files and movies, the libraries don't take up much space. Typically speaking, the more eye-candy you want, the more libraries (or widgets) you'll need. HTH! By the way, I remember from a univeristy Chemistry class that the best cure for a migrane is a combination of apirin, acetaminophen and THC. (You might have a hard time obtaining the THC depending on which country you're in.) -- kai ponte www.perfectreign.com <insert really offensive signature here>
Kai Ponte wrote:
Qt ( www.trolltech.com ) and Python ( www.python.org ) are both programming languages.
No no no. Python is a programming language, qt is a development toolkit. qt is written in c++, and has language bindings which allow you to use it with many other languages, including Python.
Qt is a C++ compiler
Not at all.
On Tuesday 24 January 2006 12:46 pm, Anders Johansson wrote:
Kai Ponte wrote:
Qt ( www.trolltech.com ) and Python ( www.python.org ) are both programming languages.
No no no.
Python is a programming language, qt is a development toolkit. qt is written in c++, and has language bindings which allow you to use it with many other languages, including Python.
Qt is a C++ compiler
Not at all.
Exactly. Qt does have a form/widget designer gui. Similar to using VB if you will. It is pretty easy to learn if you haven't done much, and using c/c++ syntax is nice to break your teeth on. You are pretty much unlimited in what you can do. You can start to make a simple GUI app and then sky's the limit. On the downside, it can be pretty cost-prohibitive if you want to do anything with it commercially as a hobby. e.g. It is cheap if your company is paying for it, but pretty expensive to do on your own. why? because you aren't allowed to develop using the GPL'd version, and if you come up with something viable, license the commercial version and release. If you want to own what you write, you have to come up with the commersial license fee FIRST before you ever even start. All this said, however, it is a wonderfull toolkit to use. Works well and with anything / everything. Making RAD (Rapid Application Development) a piece of cake for any platform you like, without having to use anything from M$. B-)
Kai Ponte wrote:
Qt ( www.trolltech.com ) and Python ( www.python.org ) are both programming languages. [snip] Qt is a C++ compiler and set of tools (called "widgets") from Tolltech company in Norway.
Qt is a programming library or toolkit, not a language nor a compiler. http://en.wikipedia.org/wiki/Qt_%28toolkit%29
It is open source, which means there's no commercial entity behind it.
AFAIK, that's true for Python, but to say "open source" = "no commercial entity behind it", isn't that going a bit far? YaST is open source, yet Novell is clearly "behind it".
Hence the reason the Gnome desktop is written with GTK+, another C++ compiler which is completely open source.
Not a compiler, but a library or a toolkit. http://en.wikipedia.org/wiki/Gtk%2B /Per Jessen, Zürich (-7.07 °C) -- http://www.spamchek.com/ - managed anti-spam and anti-virus solution. Let us analyse your spam- and virus-threat - up to 2 months for free.
participants (4)
-
Anders Johansson
-
Brad Bourn
-
Kai Ponte
-
Per Jessen