def reInit(self): self.interfaceLock.acquire() self.__activeAp = { 'name': 'None', 'passwd': 'None', 'interface1': 'None', 'interface2': 'None' } self.__status = { 'active': False, 'text': self._('No active AP'), 'button': self._('Connect') } self.errorMsg = {'newMsg': False, 'title': None, 'text': None} self.__statistic = { 'startReceived': None, 'startSending': None, 'receiving': '0', 'totalReceived': '0', 'sending': '0', 'totalSent': '0' } #init Thread self.interfaceThread = TerminalInterface(self.mysignal, signalNewMsg) self.statisticThread = Statistic(self.mysignal, signalUpdateStatistic) self.interfaceLock.release()
def initInterfaceList(self): if not self.refreshingInterface: self.refreshingInterface = True self.interfaceListStore = Gtk.ListStore(str) self.interface = TerminalInterface(self.interfaceListSignal, "interfaceListMsg") self.interface.command = ['ifconfig'] self.interface.start()