Exemple #1
0
    def configButton_click(self):
        import MainApp.conf as Conf

        log("opening configuration window")
        ui = configWindow.configWindow(self)
        ui.WorkingThread = self.thread
        ui.lineEdit.setText(config.get("IP"))
        ui.colorThresholdVal.setValue(int(config.get("threshold")))
        ui.p1.setValue(int(Conf.get("param1")))
        ui.p2.setValue(int(Conf.get("param2")))
        if ui.exec_():
            config.set("IP", ui.lineEdit.text())
            config.set("threshold", ui.colorThresholdVal.value())
Exemple #2
0
 def nxtControlButton_click(self):
     log("opening NXT window")
     ui = nxtWindow.nxtWindow(self)
     ui.exec_()