Example #1
0
 def add_application(self, name, app):
     self.curr += 1
     box = QGroupBox(self)
     box.move(self.curr * 150 + 25, 25)
     box.resize(145, 150)
     label = QLabel(name, box)
     label.resize(label.sizeHint())
     label.move(45, 25)
     btn = QPushButton('Старт', box)
     btn.app = app
     btn.resize(btn.sizeHint())
     btn.move(40, 75)
     btn.clicked.connect(self.start)