Ejemplo n.º 1
0
    def find_help(self):
        """Locate the help files, update self.help var"""
        self.help = None

        if os.path.exists(help_file_path()):
            self.help = HtmlHelpController()
            self.help.AddBook(help_file_path())
Ejemplo n.º 2
0
 def on_help(self, event=None, page=None):
     """
     Shows the help file, if it exists, otherwise prompts the user to
     download it.
     """
     if self.help and os.path.exists(help_file_path()):
         if page:
             self.help.Display(page)
         else:
             self.help.DisplayIndex()
     else:
         if self.download_help():
             self.on_help(page=page)