Ejemplo n.º 1
0
def trigger():
    title = mw.windowTitle()
    mw.setWindowTitle("Anki - autoplay")
    mw.progress.timer(300,
                      lambda: mw.setWindowTitle(title),
                      False,
                      requiresCollection=False)
Ejemplo n.º 2
0
 def card_title(self):
     self.overview_title()
     old_subdeck_name = self.subdeck_name
     self.subdeck_name = mw.col.decks.get(mw.reviewer.card.did)['name']
     if old_subdeck_name == self.subdeck_name:
         return
     if self.subdeck_name == self.deck_name:
         self.overview_title()
         return
     mw.setWindowTitle(self.deck_name +
                       '(' + self.subdeck_name[len(self.deck_name):] + ')' +
                       title_separator + self.profile_string +
                       self.prog_name)
Ejemplo n.º 3
0
 def card_title(self):
     self.overview_title()
     old_subdeck_name = self.subdeck_name
     self.subdeck_name = mw.col.decks.get(mw.reviewer.card.did)['name']
     if old_subdeck_name == self.subdeck_name:
         return
     if self.subdeck_name == self.deck_name:
         self.overview_title()
         return
     mw.setWindowTitle(
         subdeck_format.format(
             parent=self.deck_name,
             child=self.subdeck_name[(len(self.deck_name) + 2):])
         + title_separator + self.profile_string + self.prog_name)
Ejemplo n.º 4
0
 def card_title(self):
     """Set the window title when we are reviewing."""
     self.overview_title()
     old_subdeck_name = self.subdeck_name
     self.subdeck_name = mw.col.decks.get(mw.reviewer.card.did)['name']
     if old_subdeck_name == self.subdeck_name:
         return
     if self.subdeck_name == self.deck_name:
         self.overview_title()
         return
     mw.setWindowTitle(
         subdeck_format.format(
             parent=self.deck_name,
             child=self.subdeck_name[(len(self.deck_name) + 2):])
         + title_separator + self.profile_string + self.prog_name)
Ejemplo n.º 5
0
def set_window_title_to_anki():
    mw.setWindowTitle(u'Anki')
Ejemplo n.º 6
0
 def overview_title(self):
     """Set the window title when we are at the overview."""
     mw.setWindowTitle(self.get_deck_name() + title_separator +
                       self.profile_string + self.prog_name)
Ejemplo n.º 7
0
 def deck_browser_title(self):
     """Set the window title when we are in the deck browser."""
     mw.setWindowTitle(self.get_profile_string() + self.prog_name)
def removeCondensedAudioInProgressMessage():
    title = mw.windowTitle()
    msg = " (Condensed Audio Exporting in Progress)"
    if msg in title:
        mw.setWindowTitle(title.replace(msg, ""))
def addCondensedAudioInProgressMessage():
    title = mw.windowTitle()
    msg = " (Condensed Audio Exporting in Progress)"
    if msg not in title:
        mw.setWindowTitle(title + msg)
Ejemplo n.º 10
0
 def overview_title(self):
     """Set the window title when we are at the overview."""
     mw.setWindowTitle(self.get_deck_name() + title_separator + self.profile_string + self.prog_name)
Ejemplo n.º 11
0
 def deck_browser_title(self):
     """Set the window title when we are in the deck browser."""
     mw.setWindowTitle(self.get_profile_string() + self.prog_name)
Ejemplo n.º 12
0
 def overview_title(self):
     mw.setWindowTitle(self.get_deck_name() + title_separator +
                       self.profile_string + self.prog_name)
Ejemplo n.º 13
0
 def deck_browser_title(self):
     mw.setWindowTitle(self.get_profile_string() + self.prog_name)