def showInfo(self): win = hildon.StackableWindow() win.set_title("Info") """enlarge the tabs in the notebook vertically to be more finger friendly""" enlargeTabs = 15 versionString = info.getVersionString() notebook = gtk.Notebook() # shortcuts need to be pannable pann = hildon.PannableArea() pann.add_with_viewport(info.getShortcutsContent()) # add shortcuts tab notebook.append_page(pann,self._getLabel("Shortcuts",enlargeTabs)) # add stats tab notebook.append_page(info.getStatsContent(self.mieru),self._getLabel("Stats", enlargeTabs)) # add about tab notebook.append_page(info.getAboutContent(versionString),self._getLabel("About", enlargeTabs)) # add the netebook to the new stackable window win.add(notebook) # show it win.show_all() # start on first page notebook.set_current_page(0)
def showInfo(self): import gtk import hildon win = hildon.StackableWindow() win.set_title("Info") """enlarge the tabs in the notebook vertically to be more finger friendly""" enlargeTabs = 15 versionString = info.getVersionString() if versionString is None: versionString = "unknown version" notebook = gtk.Notebook() # shortcuts need to be pannable pann = hildon.PannableArea() pann.add_with_viewport(info.getShortcutsContent()) # add shortcuts tab notebook.append_page(pann, self._getLabel("Shortcuts", enlargeTabs)) # add stats tab notebook.append_page(info.getStatsContent(self.mieru), self._getLabel("Stats", enlargeTabs)) # add about tab notebook.append_page(info.getAboutContent(versionString), self._getLabel("About", enlargeTabs)) # add the notebook to the new stackable window win.add(notebook) # show it win.show_all() # start on first page notebook.set_current_page(0)
def getVersionString(self): return newlines2brs(info.getVersionString())
def getVersionString(self): versionString = info.getVersionString() if versionString is None: versionString = "unknown version" return newlines2brs(versionString)