PDA

View Full Version : PyQt packages



themusicwave
May 2nd, 2010, 09:57 PM
Hey everyone,

This is a very easy question I hope. What packages do I need to install on 10.04 to write pyqt code? I want to try out writing a small App using QT, but I can't even import qt yet. I must be missing a library or something.


Thanks,

Jon

Bachstelze
May 2nd, 2010, 09:59 PM
You need python-qt4.

themusicwave
May 3rd, 2010, 01:12 AM
I have that one, but still if I go to the interactive shell and type import qt I get "No module named qt"

Any other ideas?

Thanks.

themusicwave
May 3rd, 2010, 01:23 AM
Well I found a different example with different imports and it worked.

This is the example:



import sys
from PyQt4.QtGui import *
app = QApplication(sys.argv)
button = QPushButton("Hello World", None)
button.show()
app.exec_()