def load(plugin, *args, **kwargs): autoload(plugin, *args, **kwargs) for ind in AreaVi.areavi_widgets(root): plugin.install(ind, *args, **kwargs) root.status.set_msg('Plugin loaded!')
def restore_area_focus(self): """ When an AreaVi is destroyed, the focused_area is a dead widget, so it gives focus to the first AreaVi in the active tab. """ wid = self.nametowidget(self.select()) seq = AreaVi.areavi_widgets(wid) area = next(seq) area.focus_set()