Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
74b02836
Commit
74b02836
authored
14 years ago
by
Andreas Schenk
Browse files
Options
Downloads
Patches
Plain Diff
fixed help widget
parent
8e6ca415
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/gui/pymod/dng/init.py
+0
-1
0 additions, 1 deletion
modules/gui/pymod/dng/init.py
modules/gui/pymod/helpwidget.py
+8
-6
8 additions, 6 deletions
modules/gui/pymod/helpwidget.py
scripts/init.py
+1
-0
1 addition, 0 deletions
scripts/init.py
with
9 additions
and
7 deletions
modules/gui/pymod/dng/init.py
+
0
−
1
View file @
74b02836
...
...
@@ -21,7 +21,6 @@ from ost.gui.init_spacenav import _InitSpaceNav
from
ost.gui.init_context_menu
import
_InitContextMenu
from
ost.gui.init_splash
import
_InitSplash
from
ost.gui.dng
import
termuse
from
ost.gui.helpwidget
import
help
import
ost.gui.dng.menu
from
PyQt4.QtGui
import
*
def
_my_exit
(
code
):
...
...
This diff is collapsed.
Click to expand it.
modules/gui/pymod/helpwidget.py
+
8
−
6
View file @
74b02836
...
...
@@ -19,7 +19,7 @@ class DocWidget(QWidget):
doc_widget
=
DocWidget
()
doc_widget_for_panel
=
gui
.
Widget
(
doc_widget
)
panels
=
gui
.
GostyApp
.
Instance
().
perspective
.
panels
panels
.
AddWidgetToPool
(
"
Doc
"
,
doc_widget_for_panel
)
panels
.
AddWidgetToPool
(
"
OpenStructure Help
"
,
doc_widget_for_panel
)
class
Help
:
...
...
@@ -28,12 +28,14 @@ class Help:
d
=
pydoc
.
HTMLDoc
()
if
what
==
None
:
doc_widget
.
doctext
.
setHtml
(
''
)
doc_widget
.
show
()
doc_widget
.
searchbox
.
setText
(
''
)
return
s
=
d
.
document
(
pydoc
.
resolve
(
what
)[
0
])
doc_widget
.
doctext
.
setHtml
(
s
)
doc_widget
.
searchbox
.
setText
(
''
)
else
:
try
:
s
=
d
.
document
(
pydoc
.
resolve
(
what
)[
0
])
except
ImportError
as
detail
:
s
=
str
(
detail
)
doc_widget
.
doctext
.
setHtml
(
s
)
doc_widget
.
searchbox
.
setText
(
''
)
if
not
doc_widget
.
isVisible
():
panels
.
AddWidget
(
gui
.
PanelPosition
.
RIGHT_PANEL
,
doc_widget_for_panel
,
False
)
def
__repr__
(
self
):
...
...
This diff is collapsed.
Click to expand it.
scripts/init.py
+
1
−
0
View file @
74b02836
...
...
@@ -2,3 +2,4 @@ from ost import *
from
ost
import
gui
import
ost.gui.dng.init
from
ost.gui
import
PushVerbosityLevel
,
PopVerbosityLevel
from
ost.gui.helpwidget
import
help
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment