def updateinfo(self): if self.ifruning is False: self.ifruning = True defaultdev = defaultcard() self.cardinfo = networkdictionary() sleep(1) GLib.idle_add(self.updatetray, defaultdev)
def updateinfo(self): if self.ifruning is False: self.ifruning = True self.cardinfo = networkdictionary() defaultcard = self.cardinfo['default'] default_type = self.network_type(defaultcard) GLib.idle_add(self.updatetray, defaultcard, default_type) self.ifruning = False