def __on_search_help(self, event): html = search_module_help(self.search_text.Value) if html is None: wx.MessageBox('No references found for "%s".' % self.search_text.Value, caption = "Text not found", parent = self, style = wx.OK | wx.CENTRE | wx.ICON_INFORMATION) else: self.display_helpframe(html, 'Help matching "%s"' % self.search_text.Value)
def __on_search_help(self, event): html = search_module_help(self.search_text.Value) if html is None: wx.MessageBox('No references found for "%s".' % self.search_text.Value, caption = "Text not found", parent = self, style = wx.OK | wx.CENTRE | wx.ICON_INFORMATION) else: self.display_helpframe(html, "Help matching %s" % self.search_text)
def __on_search_help(self, event): if len(self.search_text.Value) == 0: wx.MessageBox( "Please enter the search text to be found.", caption = "No text to search", parent = self, style = wx.OK | wx.CENTRE | wx.ICON_INFORMATION) self.search_text.SetFocus() return html = search_module_help(self.search_text.Value) if html is None: wx.MessageBox('No references found for "%s".' % self.search_text.Value, caption = "Text not found", parent = self, style = wx.OK | wx.CENTRE | wx.ICON_INFORMATION) else: self.display_helpframe(html, 'Help matching "%s"' % self.search_text.Value)