6 QWidget.__init__(self, parent)
9 self.setWindowTitle(
'OpenStructure Help')
15 QObject.connect(self.
searchbox, SIGNAL(
'returnPressed()'),
18 help(str(self.searchbox.text()))
21 panels=gui.GostyApp.Instance().perspective.panels
22 panels.AddWidgetToPool(
"OpenStructure Help",doc_widget_for_panel)
30 doc_widget.doctext.setHtml(
'')
31 doc_widget.searchbox.setText(
'')
34 s=d.document(pydoc.resolve(what)[0])
35 except ImportError, detail:
37 doc_widget.doctext.setHtml(s)
38 doc_widget.searchbox.setText(
'')
39 if not doc_widget.isVisible():
40 panels.AddWidget(gui.PanelPosition.RIGHT_PANEL, doc_widget_for_panel,
False)
42 return 'Type help() for interactive help, or help(object) for help about object.'