Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from PyQt5.QtWidgets import *
- from PyQt5.QtGui import *
- from PyQt5.QtCore import *
- class Example(QMainWindow):
- def __init__(self):
- super(Example, self).__init__()
- self.initUI()
- def initUI(self):
- self.statusBar().showMessage('Ready')
- rp = QTreeView
- rp = QTreeView
- panele = QGridLayout
- panele.addWidget(lp, 0, 0)
- panele.addWidget(rp, 0, 1)
- glowny = QVBoxLayout()
- glowny.addLayout(panele)
- glowny.addWidget(QComboBox())
- polecenie = QGridLayout()
- polecenie.addWidget(QLabel(""),0,0)
- polecenie.addWidget(QLabel(r"c:\>"),0,2)
- polecenie.addWidget((QComboBox),0,2,1,3)
- przyciski = QGridLayout()
- for j,t in enumerate ["F3 -Podgląd","F4-Edycja", "F5-Open"]:
- przyciski.addWidget(QPushButton(t),0,j)
- glowny.addLayut(przyciski)
- w = QWidget()
- w.setLayout(glowny)
- self.move(300, 150)
- self.setWindowTitle('Total Commander')
- self.setCentralWidget(w)
- self.show()
- def main():
- app = QApplication(sys.argv)
- sys.exit(app.exec_())
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement