- python-3.4.0.amd64
- PyQt4-4.11-gpl-Py3.4-Qt4.8.6-x64
( http://www.cs.usfca.edu/~afedosov/qttut/)
2. How to create a project .
+ Using ..\PyQt4\designer.exe to create UI
+ save ui file
+ Convert ui file to python
pyuic4 -x helloworld.ui -o helloworld.py
+ event in pyqt
with button #http://pyqt.sourceforge.net/Docs/PyQt4/qdialogbuttonbox.html
self.buttonBox.clicked.connect(self.myClickButton)
def myClickButton(self):
self.count = self.count+1;
if self.count %2 == 1:
self.label.setText(_translate("Test", "ThongLT", None))
else :
self.label.setText(_translate("Test", "Hello world !", None))
Hiding console window of Python GUI app
rename py file to pyw file
QT Desinger
run : ctr+R
Design patter
http://www.aleax.it/gdd_pydp.pdf
Thong LT
reference link : + http://stackoverflow.com/questions/2398800/linking-a-qtdesigner-ui-file-to-python-pyqt
+http://talk.maemo.org/showthread.php?t=43663
No comments:
Post a Comment