![]() ![]() tAlignment(Qt.AlignHCenter | Qt.AlignVCenter)įont tip Note that if you want to change the properties of a widget font it is usually better to get the current font, update it and then apply it back. Save the following code to a file named app.py and run it to make sure it's working. To experiment with the widgets we'll need a simple application to put them in. Next, we'll step through some of the most commonly used widgets and look at them in more detail. There are far more widgets than this, but they don’t fit so well! You can see them all by checking the Qt documentation. Lets have a look at all the example widgets, from top to bottom: Widget Run it! You'll see a window appear containing all the widgets we've created.īig ol' list of widgets on Windows, Mac & Ubuntu Linux. # to take up all the space in the window by default. # Subclass QMainWindow to customize your application's main window ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |