![]() ![]() Pyside-uic mainWindow.ui > ui_mainWindow.py While you are in the same directory as the mainWindow.ui file run the command: To do this we use the pyside-uic command. To turn it into something we can use we need to convert it to Python code. This xml data is not very useful for our Python application though. Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse I have created a MainWindow with a vertical layout that contains QTextEdit and QPushButton widgets. To get started we need to create a simple GUI using Qt Designer: If you are not familiar with both of these topics check out these resources: For this tutorial I am assuming my reader knows the basics of both Python and Qt Designer. Today's piece is going to be an introduction to using Qt Designer tool to build interfaces for Python applications utilizing PySide bindings Qt. You can access them using a variety of different programming languages ranging from compiled applications like C++ to scripted languages like Python. Qt is a cross-platform GUI toolkit that scales from mobile interfaces to full blown desktop applications. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |