3
Contributors
3
Replies
4
Views
4 Years
Discussion Span
Last Post by marcin19962
0
# a very simple template to test PyQT widgets
# PyQT free from:
# http://www.riverbankcomputing.co.uk/software/pyqt/download
# used Windows installer PyQt-Py3.2-x86-gpl-4.8.4-1.exe
# tested with PyQT 4.8 and Python 3.2

from PyQt4.QtCore import *
from PyQt4.QtGui import *

app = QApplication([])

# ----- start your widget test code ----


# create the label
label = QLabel()
label.show()
# insert a text string
label.setText('hello all together')


# ---- end of widget test code -----

app.exec_()

Edited by HiHe

0

So sorry for mistake, i have already discover why it wasn't working, and deleted files from my dropbox folder, it's why it doesn't work. i just used class() instead variable = class(), class.ui.etc.etc.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.