Python-KDE

From Logicalwebhost-Wiki

Jump to: navigation, search

python needs some sort of KDE interpreter to write GUI apps, so tried wxpython, but eventually settled on pyQt, which ties in Python with Qt, which has a slick app builder with drag-n-drop functionality called Qt-designer, so I loaded all this junk to get my setup right, I probably should take some extras out of the list...sometime.

 apt-get install python-qt4 python-kde3-dev python-qtext qt4-designer qt4-dev-tools libqt4-core libqt4-gui libqt4-sql libqt4-qt3support libqt4-dev qt4-dev-tools qt4-designer qt4-qtconfig qt4-doc subversion python-qt4-doc kde4-style-qtcurve kuiviewer-kde4 g++

now I'll experiment trying to make and app within OpenKomodo IDE

First start Qt designer

 Kmenu > Development > Qt Designer

you can find tutorials on what you're trying to do here at Trolltech, the Qt maker

there are a bunch of Qt GUI examples here at Trolltech too

if you make something for Qt, you have to make a .cpp file, preferrably in it's own folder, then run

 qmake -project
 qmake

which will make a .pro file, then run

 make

make sure there are no asterisk comments at the top of the file, it will hoze stuff. then run

 ./qt

after all that I found out I really need Qt3, not Qt4, because Knoppix uses 3.3, and I can't really find a decent reason to use 4 for what I'm doing...at least for now, so this is how I will install stuff...hopefully

apt-get install python-qt3 python-qt3-doc qt3-apps-dev qt3-assistant qt3-designer qt3-dev-tools qt3-doc python-qt3-gl qt3-examples qt3-qtconfig python-kde3-dev python-qtext subversion qsampler g++ build-essential subversion-tools libstdc++5 pyqt-tools

import os
import sys
import qt
imports all the classes you'll probably need
hello1.py -style=platinum runs a script with a style
Personal tools