def _rightLinks(self): links = [ self.create_link("stats", _("Stats"), self._statsLinkHandler, tip=_("Shortcut key: %s") % "T", id="stats"), self._create_sync_link() ] gui_hooks.top_toolbar_did_init_links(links, self) return "\n".join(links)
def _centerLinks(self): links = [ self.create_link("decks", _("Decks"), self._deckLinkHandler, tip=_("Shortcut key: %s") % "D", id="decks"), self.create_link("add", _("Add"), self._addLinkHandler, tip=_("Shortcut key: %s") % "A", id="add"), self.create_link("browse", _("Browse"), self._browseLinkHandler, tip=_("Shortcut key: %s") % "B", id="browse"), ] gui_hooks.top_toolbar_did_init_links(links, self) return "\n".join(links)
def _centerLinks(self) -> str: links = [ self.create_link( "decks", tr(TR.ACTIONS_DECKS), self._deckLinkHandler, tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="D"), id="decks", ), self.create_link( "add", tr(TR.ACTIONS_ADD), self._addLinkHandler, tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="A"), id="add", ), self.create_link( "browse", tr(TR.QT_MISC_BROWSE), self._browseLinkHandler, tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="B"), id="browse", ), self.create_link( "stats", tr(TR.QT_MISC_STATS), self._statsLinkHandler, tip=tr(TR.ACTIONS_SHORTCUT_KEY, val="T"), id="stats", ), ] links.append(self._create_sync_link()) gui_hooks.top_toolbar_did_init_links(links, self) return "\n".join(links)
def _centerLinks(self) -> str: links = [ self.create_link( "decks", _("Decks"), self._deckLinkHandler, tip=_("Shortcut key: %s") % "D", id="decks", ), self.create_link( "add", _("Add"), self._addLinkHandler, tip=_("Shortcut key: %s") % "A", id="add", ), self.create_link( "browse", _("Browse"), self._browseLinkHandler, tip=_("Shortcut key: %s") % "B", id="browse", ), self.create_link( "stats", _("Stats"), self._statsLinkHandler, tip=_("Shortcut key: %s") % "T", id="stats", ), ] links.append(self._create_sync_link()) gui_hooks.top_toolbar_did_init_links(links, self) return "\n".join(links)
def _centerLinks(self) -> str: links = [ self.create_link( "decks", tr.actions_decks(), self._deckLinkHandler, tip=tr.actions_shortcut_key(val="D"), id="decks", ), self.create_link( "add", tr.actions_add(), self._addLinkHandler, tip=tr.actions_shortcut_key(val="A"), id="add", ), self.create_link( "browse", tr.qt_misc_browse(), self._browseLinkHandler, tip=tr.actions_shortcut_key(val="B"), id="browse", ), self.create_link( "stats", tr.qt_misc_stats(), self._statsLinkHandler, tip=tr.actions_shortcut_key(val="T"), id="stats", ), ] links.append(self._create_sync_link()) gui_hooks.top_toolbar_did_init_links(links, self) return "\n".join(links)