For all software developers this article you may find it useful. Python is a high-level programming language & very easy to code.
Out of all GUI packages ( kivy, wxpython, tkinter etc) PyQt is more famous, faster & robust to be implemented in your IoT & Robotics Projects.
How to start with PyQt?
- Download & Install Qt Designer: LINK
- Design your software & save to yourUI.ui file
- Include your GUI design in another mywindow.py file as package
from PyQt4 import QtCore, QtGui
# import the UI from the generated file
from yourUI import Ui_MainWindow
class MyMainWindow(QtGui.QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
super(MyMainWindow, self).__init__(parent)
self.setupUi(self)
# if you didn't subclass Ui_MainWindow simply do:
# Ui_MainWindow().setupUi(self)
if __name__ == '__main__':
app = QtGui.QApplication([])
win = MyMainWindow()
win.show()
app.exec_()
You can search for more tutorials about pyqt and comment me for source codes.
0 comments:
Post a Comment
Thanks for your comment. We will try to reply as soon as possible.
Regards
VSL Creations