def _detach(self, event): # print("DEBUG: PopupWindow at detached call") self.hide() dlg = HtmlDialog(self._detached_title, self._current_details) dlg.SetPosition((wx.GetMouseState().x, wx.GetMouseState().y)) dlg.Show() event.Skip()
def _detach(self, event): self.hide() dlg = HtmlDialog(self._detached_title, self._current_details) dlg.SetPosition((wx.GetMouseState().x, wx.GetMouseState().y)) dlg.Show() if IS_WINDOWS: event.Skip()
def show_help_dialog(self, event): content = """<h1>Syntax colorization</h1> <p> Syntax colorization for Text Edit uses <a href='http://pygments.org/'>Pygments</a> syntax highlighter. </p> <p> Install Pygments from command line with: <pre> pip install pygments </pre> Or: <pre> easy_install pygments </pre> Then, restart RIDE. </p> <p> If you do not have pip or easy_install, <a href='http://pythonhosted.org/an_example_pypi_project/setuptools.html#installing-setuptools-and-easy-install'>follow these instructions</a>. </p> <p> For more information about installing Pygments, <a href='http://pygments.org/download/'>see the site</a>. </p> """ HtmlDialog("Getting syntax colorization", content).Show()
def OnImportFailedHelp(self, event): if self._import_failed_shown: return dialog = HtmlDialog('Import failure handling', ''' <br>Possible corrections and notes:<br> <ul> <li>Import failure is shown with red color.</li> <li>See Tools / View RIDE Log for detailed information about the failure.</li> <li>If the import contains a variable that RIDE has not initialized, consider adding the variable to variable table with a default value.</li> <li>For library import failure: Consider importing library spec XML (Tools / Import Library Spec XML or by adding the XML file with the correct name to PYTHONPATH) to enable keyword completion for example for Java libraries. Library spec XML can be created using libdoc tool from Robot Framework. For more information see <a href="https://github.com/robotframework/RIDE/wiki/Keyword-Completion#wiki-using-library-specs">wiki</a>. </li> </ul>''') dialog.Bind(wx.EVT_CLOSE, self._import_failed_help_closed) dialog.Show() self._import_failed_shown = True