def __init__(self): super(window, self).__init__() self.ui=Ui_MainWindow() self.ui.setupUi(self) self.set_signals() self.cf1=cf(self.ui.l_x1,self.ui.l_y1,self.ui.l_z1,self.ui.l_conn1) self.cf2=cf(self.ui.l_x2,self.ui.l_y2,self.ui.l_z2,self.ui.l_conn2)
def __init__(self): super(window, self).__init__() self.ui = Ui_MainWindow() self.ui.setupUi(self) self.set_signals() Thread(target=self.pozycja).start() self.cf1 = cf(self.ui.l_x1, self.ui.l_y1, self.ui.l_z1, self.ui.l_conn1) self.cf2 = cf(self.ui.l_x2, self.ui.l_y2, self.ui.l_z2, self.ui.l_conn2)
def __init__(self): super(window, self).__init__() self.ui=Ui_MainWindow() self.ui.setupUi(self) self.set_signals() Thread(target=self.pozycja).start() self.cf1=cf(self.ui.l_x1,self.ui.l_y1,self.ui.l_z1,self.ui.l_conn1) self.cf2=cf(self.ui.l_x2,self.ui.l_y2,self.ui.l_z2,self.ui.l_conn2)
def __init__(self,id,uri,parent): super(dron, self).__init__() # ustawienie gui self.ui=Ui_Dron() self.ui.setupUi(self) self.ui.tabWidget.setCurrentIndex(0) #inicjalizacja ustawien drona self.uri=uri self.id=id self.cf=cf(self) self.ui.l_conn.setText("Choosen: {}".format(self.uri)) # odswiezanie interfejsu self.update_gui_thread=QTimer() self.update_gui_thread.timeout.connect(self.update_interface) self.update_gui_thread.start(100) # ustawienia watku wyliczjacego sterowanie self.update_control_thread=QTimer() self.update_control_thread.timeout.connect(self.update_control) self.timeout=0 self.set_signals() # ustawienie sygnalow PyQt self.set_variables()
def __init__(self, id, uri, parent): super(dron, self).__init__() # ustawienie gui self.ui = Ui_Dron() self.ui.setupUi(self) self.ui.tabWidget.setCurrentIndex(0) #inicjalizacja ustawien drona self.uri = uri self.id = id self.cf = cf(self) self.ui.l_conn.setText("Choosen: {}".format(self.uri)) # odswiezanie interfejsu self.update_gui_thread = QTimer() self.update_gui_thread.timeout.connect(self.update_interface) self.update_gui_thread.start(100) # ustawienia watku wyliczjacego sterowanie self.update_control_thread = QTimer() self.update_control_thread.timeout.connect(self.update_control) self.timeout = 0 self.set_signals() # ustawienie sygnalow PyQt self.set_variables()