def bapply(s, x=None): global restartplanet for x, n in zip(feeds, range(len(feeds))): if s.boxes[n].IsChecked(): x[2] = True else: x[2] = False rssplanet.feeds = feeds if restartplanet: rssplanet.launch_xplanet() restartplanet = False s.run_rssplanet()
def bapply(s, x = None): global restartplanet for x, n in zip(feeds, range(len(feeds))): if s.boxes[n].IsChecked(): x[2] = True else: x[2] = False rssplanet.feeds = feeds if restartplanet: rssplanet.launch_xplanet() restartplanet = False s.run_rssplanet()
def change_mode(s, x=None): c = s.modemenu.GetSelection() if not c: rssplanet.start_xplanet = True else: rssplanet.start_xplanet = False rssplanet.launch_xplanet()
def change_mode(s, x = None): c = s.modemenu.GetSelection() if not c: rssplanet.start_xplanet = True else: rssplanet.start_xplanet = False rssplanet.launch_xplanet()