Deduplicate code creating widgets for prefs tabs

This commit is contained in:
David Robertson
2020-05-06 03:02:23 +01:00
parent 1fc076b158
commit f05540a587
11 changed files with 81 additions and 117 deletions

View File

@@ -46,4 +46,10 @@ class Tools2PreferencesUI(PreferencesSectionUI):
# fixme column 5
self.tools2_punch_group,
self.tools2_invert_group,
]
]
def get_tab_id(self):
return "tools2_tab"
def get_tab_label(self):
return _("TOOLS 2")