Commit 148fb4bc7f1e645597a0a99fa506d3876231ab19
1 parent
a74def23
Exists in
master
and in
68 other branches
ENH: Update generic task
Showing
2 changed files
with
15 additions
and
4 deletions
Show diff stats
invesalius/gui/task_generic.py
invesalius/gui/task_navigator.py
... | ... | @@ -21,11 +21,11 @@ import os |
21 | 21 | import sys |
22 | 22 | |
23 | 23 | import wx |
24 | -#import wx.lib.hyperlink as hl | |
24 | +import wx.lib.hyperlink as hl | |
25 | 25 | #import wx.lib.platebtn as pbtn |
26 | 26 | #import wx.lib.pubsub as ps |
27 | 27 | |
28 | -import constants as const | |
28 | +#import constants as const | |
29 | 29 | #import gui.dialogs as dlg |
30 | 30 | #import project as proj |
31 | 31 | |
... | ... | @@ -58,9 +58,20 @@ class InnerTaskPanel(wx.Panel): |
58 | 58 | self.__bind_events() |
59 | 59 | self.__bind_wx_events() |
60 | 60 | |
61 | + def __init_gui(self): | |
62 | + link_export_picture = hl.HyperLinkCtrl(self, -1, | |
63 | + _("Testing...")) | |
64 | + link_export_picture.SetUnderlines(False, False, False) | |
65 | + link_export_picture.SetColours("BLACK", "BLACK", "BLACK") | |
66 | + link_export_picture.SetToolTip(tooltip) | |
67 | + link_export_picture.AutoBrowse(False) | |
68 | + link_export_picture.UpdateLink() | |
69 | + #link_export_picture.Bind(hl.EVT_HYPERLINK_LEFT, | |
70 | + # self.OnLinkExportPicture) | |
71 | + | |
61 | 72 | def __bind_events(self): |
62 | 73 | """ |
63 | - Bind pubsube events | |
74 | + Bind pubsub events | |
64 | 75 | """ |
65 | 76 | # Example: ps.Publisher().subscribe("Test") |
66 | 77 | pass | ... | ... |