Exemple #1
0
    def __init__(self, filename, id_):
        self.filename = filename
        self.id_ = id_

        self.fpanel = wxgui_api.add_plugin_to_editor(filename, id_,
                                                                'Manage links')

        self.lpanel = wx.Panel(self.fpanel)

        config = coreaux_api.get_plugin_configuration('wxlinks')(
                                                        'ContextualShortcuts')
        accelerators = {
            config["focus"]: lambda event: self.set_focus(),
            config["toggle"]: lambda event: self.toggle_focus(),
        }

        wxgui_api.add_window_to_plugin(filename, id_, self.fpanel, self.lpanel,
                                                                accelerators)
Exemple #2
0
    def __init__(self, filename, id_):
        self.filename = filename
        self.id_ = id_

        self.fpanel = wxgui_api.add_plugin_to_editor(filename, id_,
                                                     'Manage links')

        self.lpanel = wx.Panel(self.fpanel)

        config = coreaux_api.get_plugin_configuration('wxlinks')(
            'ContextualShortcuts')
        accelerators = {
            config["focus"]: lambda event: self.set_focus(),
            config["toggle"]: lambda event: self.toggle_focus(),
        }

        wxgui_api.add_window_to_plugin(filename, id_, self.fpanel, self.lpanel,
                                       accelerators)
Exemple #3
0
    def __init__(self, filename, id_):
        self.filename = filename
        self.id_ = id_

        self.fpanel = wxgui_api.add_plugin_to_editor(filename, id_,
                                                                'Scheduler')
Exemple #4
0
    def __init__(self, filename, id_):
        self.filename = filename
        self.id_ = id_

        self.fpanel = wxgui_api.add_plugin_to_editor(filename, id_,
                                                                'Scheduler')