Tabs are very useful in graphical applications. They appear in webbrowsers, text editors and any other apps. To create a tabbed window, you need to call the QTabWidget() function. Every tab is a QWidget() which you have seen before. You can connect the QWidgets with the QTabWidget with the function:
tabs.addTab(tab1,"Tab 1")
where the first parameter is the tab object and the second the name that appears on the screen. We added some buttons to the first tab (QWidget).
Leave a Reply:
Okay, I tried the sample...I'm officially impressed...
Python as the vehicle of choice for desktop programs...
Thanks :)
Awesome! There will be more tutorials soon, I may write some this evening.