示例#1
0
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!')
示例#2
0
    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()