def _start_email_client(self, obj=None): import GrampsDisplay GrampsDisplay.url('mailto:[email protected]?subject=' '"bug report"&body="%s"' \ % self._final_report_text_buffer.get_text( self._final_report_text_buffer.get_start_iter(), self._final_report_text_buffer.get_end_iter()))
def handle_response(self, object, response): """ Callback for taking care of button clicks. """ if response in [gtk.RESPONSE_CLOSE, gtk.STOCK_CLOSE]: self.close() elif response == gtk.RESPONSE_HELP: # translated name: if self.gramplet.help_url: if self.gramplet.help_url.startswith("http://"): GrampsDisplay.url(self.gramplet.help_url) else: GrampsDisplay.help(self.gramplet.help_url) else: GrampsDisplay.help(WIKI_HELP_PAGE, self.gramplet.tname.replace(" ", "_"))
def __display(self): """Show the url in an external browser""" if self.url: GrampsDisplay.url(self.url)
def jump_to(self, obj): if self.obj.get_path(): import GrampsDisplay GrampsDisplay.url(self.obj.get_path())
def _start_gramps_bts_in_browser(self, obj=None): import GrampsDisplay GrampsDisplay.url('http://bugs.gramps-project.org/bug_report_page.php')