Undefined
By: Guest | Date: Nov 19 2015 19:04 | Format: Python | Expires: never | Size: 596 B | Hits: 774
- from PyQt5.QtWidgets import *
- class MainWindow(QMainWindow):
- def __init__(self):
- super().__init__()
- menubar = self.menuBar()
- menubar.addMenu("File")
- content = QWidget(self)
- layout = QHBoxLayout()
- tabs = QTabWidget()
- tabs.addTab(QPushButton("Click Me #1"), "Button 1")
- tabs.addTab(QPushButton("Click Me #2"), "Button 2")
- layout.addWidget(tabs)
- content.setMinimumSize(200, 200)
- content.setLayout(layout)
- self.show()
- app = QApplication([])
- w = MainWindow()
- app.exec_()
Latest pastes
18 hours ago
1 days ago
1 days ago
1 days ago
2 days ago