422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
|
# or .features{} for other plugin types
else:
self.features[name] = plugin_obj
except Exception as e:
log.INIT("load_plugin_channels: error initializing:", name, ", exception:")
traceback.print_exc()
# load application state (widget sizes, selections, etc.)
def init_app_state(self):
winlayout = conf.load("window")
if (winlayout):
try: uikit.app_restore(self, winlayout)
except Exception as e: log.APPSTATE_RESTORE(e) # may fail for disabled/reordered plugin channels
#winstate = conf.state() # now handled by channels.gui() already
#if (winstate):
# for id,prev in winstate.items():
# try: self.channels[id].current = prev["current"]
# except Exception as e: log.APPSTATE_RESTORE(e)
# store window/widget states (sizes, selections, etc.)
def save_app_state(self, widget):
# gtk widget states
widgetnames = ["win_streamtuner2", "toolbar", "notebook_channels", ] \
+ [id+"_list" for id in self.channel_names] \
+ [id+"_cat" for id in self.channel_names]
|
>
<
<
<
<
<
|
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
|
# or .features{} for other plugin types
else:
self.features[name] = plugin_obj
except Exception as e:
log.INIT("load_plugin_channels: error initializing:", name, ", exception:")
traceback.print_exc()
# load application state (widget sizes, selections, etc.)
def init_app_state(self):
winlayout = conf.load("window")
if (winlayout):
try: uikit.app_restore(self, winlayout)
except Exception as e: log.APPSTATE_RESTORE(e) # may fail for disabled/reordered plugin channels
# store window/widget states (sizes, selections, etc.)
def save_app_state(self, widget):
# gtk widget states
widgetnames = ["win_streamtuner2", "toolbar", "notebook_channels", ] \
+ [id+"_list" for id in self.channel_names] \
+ [id+"_cat" for id in self.channel_names]
|