A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/themix-project/themix-gui/commit/036bd958621ee40c4f234da923015e03c488f97f below:

allow import and export plugins to have their… · themix-project/themix-gui@036bd95 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+10

-0

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+10

-0

lines changed Original file line number Diff line number Diff line change

@@ -811,6 +811,12 @@ def set_accels_for_action(action, accels):

811 811

set_accels_for_action(WindowActions.export_terminal, ["<Primary>X"])

812 812

set_accels_for_action(WindowActions.menu, ["F10"])

813 813

set_accels_for_action(WindowActions.show_help, ["<Primary>question"])

814 +

for plugin_name, plugin in IMPORT_PLUGINS.items():

815 +

if plugin.shortcut:

816 +

set_accels_for_action("import_plugin_{}".format(plugin_name), [plugin.shortcut])

817 +

for plugin_name, plugin in EXPORT_PLUGINS.items():

818 +

if plugin.shortcut:

819 +

set_accels_for_action("export_plugin_{}".format(plugin_name), [plugin.shortcut])

814 820 815 821

def do_activate(self): # pylint: disable=arguments-differ

816 822

if not self.window:

Original file line number Diff line number Diff line change

@@ -121,6 +121,8 @@ def export_dialog(self) -> 'ExportDialog':

121 121 122 122

theme_model_extra = [] # type: List[ThemeModelValue]

123 123 124 +

shortcut = None # type: Optional[str]

125 + 124 126 125 127

class OomoxImportPlugin(OomoxPlugin):

126 128

@@ -149,6 +151,8 @@ def user_theme_dir(self) -> str:

149 151

os.path.join(USER_COLORS_DIR, PLUGIN_PATH_PREFIX + self.name)

150 152

)

151 153 154 +

shortcut = None # type: Optional[str]

155 + 152 156

# ############ @TODO: figure that out: ?

153 157 154 158

_app = None

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4