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
@@ -50,7 +50,7 @@ class InnerTaskPanel(wx.Panel): | @@ -50,7 +50,7 @@ class InnerTaskPanel(wx.Panel): | ||
50 | 50 | ||
51 | def __bind_events(self): | 51 | def __bind_events(self): |
52 | """ | 52 | """ |
53 | - Bind pubsube events | 53 | + Bind pubsub events |
54 | """ | 54 | """ |
55 | # Example: ps.Publisher().subscribe("Test") | 55 | # Example: ps.Publisher().subscribe("Test") |
56 | pass | 56 | pass |
invesalius/gui/task_navigator.py
@@ -21,11 +21,11 @@ import os | @@ -21,11 +21,11 @@ import os | ||
21 | import sys | 21 | import sys |
22 | 22 | ||
23 | import wx | 23 | import wx |
24 | -#import wx.lib.hyperlink as hl | 24 | +import wx.lib.hyperlink as hl |
25 | #import wx.lib.platebtn as pbtn | 25 | #import wx.lib.platebtn as pbtn |
26 | #import wx.lib.pubsub as ps | 26 | #import wx.lib.pubsub as ps |
27 | 27 | ||
28 | -import constants as const | 28 | +#import constants as const |
29 | #import gui.dialogs as dlg | 29 | #import gui.dialogs as dlg |
30 | #import project as proj | 30 | #import project as proj |
31 | 31 | ||
@@ -58,9 +58,20 @@ class InnerTaskPanel(wx.Panel): | @@ -58,9 +58,20 @@ class InnerTaskPanel(wx.Panel): | ||
58 | self.__bind_events() | 58 | self.__bind_events() |
59 | self.__bind_wx_events() | 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 | def __bind_events(self): | 72 | def __bind_events(self): |
62 | """ | 73 | """ |
63 | - Bind pubsube events | 74 | + Bind pubsub events |
64 | """ | 75 | """ |
65 | # Example: ps.Publisher().subscribe("Test") | 76 | # Example: ps.Publisher().subscribe("Test") |
66 | pass | 77 | pass |