Commit d8aec8f55b90dd7e50d69c307cee17c358b1f5a9
1 parent
203f403d
Exists in
master
and in
6 other branches
ADD: User manual
Showing
5 changed files
with
18 additions
and
1 deletions
Show diff stats
.gitattributes
| ... | ... | @@ -14,6 +14,7 @@ docs/devel/example_singleton.py -text |
| 14 | 14 | docs/devel/example_singleton_pubsub.py -text |
| 15 | 15 | docs/devel/sendmessages.txt -text |
| 16 | 16 | docs/devel/subscribes.txt -text |
| 17 | +docs/user_guide_invesalius3a.pdf -text | |
| 17 | 18 | i18n/de.po -text |
| 18 | 19 | i18n/el.po -text |
| 19 | 20 | i18n/en.po -text | ... | ... |
No preview for this file type
invesalius/constants.py
| ... | ... | @@ -254,6 +254,7 @@ REDUCE_IMAGEDATA_QUALITY = 0 |
| 254 | 254 | |
| 255 | 255 | ICON_DIR = os.path.abspath(os.path.join('..', 'icons')) |
| 256 | 256 | SAMPLE_DIR = os.path.abspath(os.path.join('..', 'samples')) |
| 257 | +DOC_DIR = os.path.abspath(os.path.join('..', 'docs')) | |
| 257 | 258 | |
| 258 | 259 | |
| 259 | 260 | ID_TO_BMP = {VOL_FRONT: [_("Front"), os.path.join(ICON_DIR, "view_front.png")], |
| ... | ... | @@ -409,6 +410,7 @@ ID_PRINT_SCREENSHOT, ID_EXIT] = [wx.NewId() for number in range(10)] |
| 409 | 410 | [wx.NewId() for number in range(3)] |
| 410 | 411 | |
| 411 | 412 | ID_ABOUT = wx.NewId() |
| 413 | +ID_START = wx.NewId() | |
| 412 | 414 | |
| 413 | 415 | #--------------------------------------------------------- |
| 414 | 416 | STATE_DEFAULT = 1000 | ... | ... |
invesalius/gui/frame.py
| ... | ... | @@ -248,6 +248,20 @@ class Frame(wx.Frame): |
| 248 | 248 | # self.OnExit(evt) |
| 249 | 249 | elif id == const.ID_ABOUT: |
| 250 | 250 | self.ShowAbout() |
| 251 | + elif id == const.ID_START: | |
| 252 | + self.GettingStarted() | |
| 253 | + | |
| 254 | + def GettingStarted(self): | |
| 255 | + #if sys.platform == 'win32': | |
| 256 | + # os.filestart() | |
| 257 | + #else: | |
| 258 | + # os.system("/usr/bin/xdg-open %s" % nome_file) | |
| 259 | + | |
| 260 | + import webbrowser | |
| 261 | + path = os.path.join(const.DOC_DIR, "user_guide_invesalius3a.pdf") | |
| 262 | + webbrowser.open(path) | |
| 263 | + | |
| 264 | + | |
| 251 | 265 | |
| 252 | 266 | def ShowAbout(self): |
| 253 | 267 | dlg.ShowAboutDialog(self) |
| ... | ... | @@ -358,7 +372,7 @@ class MenuBar(wx.MenuBar): |
| 358 | 372 | |
| 359 | 373 | # HELP |
| 360 | 374 | help_menu = wx.Menu() |
| 361 | - help_menu.Append(105, _("Getting Started...")) | |
| 375 | + help_menu.Append(const.ID_START, _("Getting Started...")) | |
| 362 | 376 | #help_menu.Append(108, "User Manual...") |
| 363 | 377 | help_menu.AppendSeparator() |
| 364 | 378 | help_menu.Append(const.ID_ABOUT, _("About...")) | ... | ... |
samples/Cranium.inv3
No preview for this file type