Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout, QGridLayout, QLabel
- import sys
- class ColorConverter():
- @staticmethod
- def rgb_to_cmyk(self, rgb):
- pass
- class MainWindow(QWidget):
- def __init__(self, parent=None):
- super().__init__(parent)
- self.interface()
- def interface(self):
- lfsr_btn = QPushButton("&LFSR", self)
- exit_btn = QPushButton("&Wyjście", self)
- # lfsr_btn.clicked.connect(self.start_lfsr)
- box_layout = QVBoxLayout()
- box_layout.addWidget(lfsr_btn)
- box_layout.addWidget(exit_btn)
- grid_layout = QGridLayout()
- grid_layout.addWidget(QLabel("Wybierz, co chcesz uczynić", self), 0, 0)
- grid_layout.addLayout(box_layout, 1, 0)
- self.setLayout(grid_layout)
- self.setGeometry(20, 20, 500, 300)
- self.setWindowTitle("Generatory")
- def main():
- app = QApplication(sys.argv)
- window = MainWindow()
- window.show()
- # input()
- sys.exit(app.exec_())
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement