def menuInformacion(procesador): liBlog = ( ("Tactical training with your own blunders", "http://lucaschess.blogspot.com.es/2011/11/tactical-training-with-your-own.html" ), ("Announcements sounds", "http://lucaschess.blogspot.com.es/2011/10/announcements-sounds.html" ), ("Personalities in Game against an engine of your choice", "http://lucaschess.blogspot.com.es/2011/09/version-60-beta-1-personalities.html" ), ("Training favourites and Your daily test", "http://lucaschess.blogspot.com.es/2011/09/version-60-dev4-with-favourites-and.html" ), ("Captured material panel", "http://lucaschess.blogspot.com.es/2011/06/version-53-captures-and-more.html" ), ("Learn openings by repetition", "http://lucaschess.blogspot.com.es/2011/06/version-52-standard-openings.html" ), ("Kibitzers", "http://lucaschess.blogspot.com.es/2011/06/version-51-with-kibitzers.html" ), ("Training mate positions", "http://lucaschess.blogspot.com.es/2011/03/new-option-training-mate-positions.html" ), ) menu = QTVarios.LCMenu(procesador.pantalla) menu.opcion("docs", _("Documents"), Iconos.Ayuda()) menu.separador() menu.opcion("web", _("Homepage"), Iconos.Web()) menu.separador() menu1 = menu.submenu("Fresh news", Iconos.Blog()) menu1.opcion("blog", "Fresh news", Iconos.Blog()) menu1.separador() for txt, lnk in liBlog: menu1.opcion(lnk, txt, Iconos.PuntoAzul()) menu.separador() menu.opcion("mail", _("Contact") + " (%s)" % "*****@*****.**", Iconos.Mail()) menu.separador() submenu = menu.submenu(_("Scores"), Iconos.EstrellaAzul()) # EXE submenu.opcion("puntuacionPost", _("Post your score"), Iconos.Puntuacion()) # EXE submenu.opcion("puntuacionConsulta", _("Check your scores in time"), Iconos.EstrellaAzul()) # EXE menu.separador() # EXE if procesador.configuracion.siMain: # EXE menu.opcion("actualiza", _("Search for updates"), Iconos.Actualiza()) # EXE menu.separador() # EXE menu.opcion("acercade", _("About"), Iconos.Aplicacion()) return menu.lanza()
def informacion(self): liBlog = ( ("Tactical training with your own blunders", "http://lucaschess.blogspot.com.es/2011/11/tactical-training-with-your-own.html"), ("Announcements sounds", "http://lucaschess.blogspot.com.es/2011/10/announcements-sounds.html"), ("Personalities in Game against an engine of your choice", "http://lucaschess.blogspot.com.es/2011/09/version-60-beta-1-personalities.html"), ("Training favourites and Your daily test", "http://lucaschess.blogspot.com.es/2011/09/version-60-dev4-with-favourites-and.html"), ( "Captured material panel", "http://lucaschess.blogspot.com.es/2011/06/version-53-captures-and-more.html"), ("Learn openings by repetition", "http://lucaschess.blogspot.com.es/2011/06/version-52-standard-openings.html"), ("Kibitzers", "http://lucaschess.blogspot.com.es/2011/06/version-51-with-kibitzers.html"), ("Training mate positions", "http://lucaschess.blogspot.com.es/2011/03/new-option-training-mate-positions.html"), ) menu = QTVarios.LCMenu(self.pantalla) menu.opcion("docs", _("Documents"), Iconos.Ayuda()) menu.separador() menu.opcion("web", _("Homepage"), Iconos.Web()) menu.separador() menu1 = menu.submenu("Fresh news", Iconos.Blog()) menu1.opcion("blog", "Fresh news", Iconos.Blog()) menu1.separador() for txt, lnk in liBlog: menu1.opcion(lnk, txt, Iconos.PuntoAzul()) menu.separador() menu.opcion("mail", _("Contact") + " (%s)" % "*****@*****.**", Iconos.Mail()) menu.separador() menu.opcion("acercade", _("About"), Iconos.Aplicacion()) resp = menu.lanza() if resp is None: return elif resp == "acercade": self.acercade() elif resp == "docs": webbrowser.open("%s/docs" % self.web) elif resp == "blog": webbrowser.open(self.blog) elif resp.startswith("http"): webbrowser.open(resp) elif resp == "web": webbrowser.open("%s/index?lang=%s" % (self.web, self.configuracion.traductor)) elif resp == "mail": webbrowser.open("mailto:[email protected]")
def menuInformacion(procesador): menu = QTVarios.LCMenu(procesador.main_window) menu.opcion("docs", _("Documents"), Iconos.Ayuda()) menu.separador() menu.opcion("web", _("Homepage"), Iconos.Web()) menu.separador() menu.opcion("blog", "Fresh news", Iconos.Blog()) menu.separador() menu.opcion("mail", _("Contact") + " (%s)" % "*****@*****.**", Iconos.Mail()) menu.separador() if procesador.configuration.is_main: menu.opcion("actualiza", _("Check for updates"), Iconos.Actualiza()) menu.separador() menu.opcion("acercade", _("About"), Iconos.Aplicacion64()) return menu.lanza()