Commit 3829e21ef4ed3fabbd6675a8e11d37e618c74b1d

Authored by tatiana
1 parent 9f05fe97

ENH: Hid mask button used to export imagedata (#89)

Showing 1 changed file with 22 additions and 22 deletions   Show diff stats
invesalius/gui/task_exporter.py
@@ -119,15 +119,15 @@ class InnerTaskPanel(wx.Panel): @@ -119,15 +119,15 @@ class InnerTaskPanel(wx.Panel):
119 link_export_surface.Bind(hl.EVT_HYPERLINK_LEFT, 119 link_export_surface.Bind(hl.EVT_HYPERLINK_LEFT,
120 self.OnLinkExportSurface) 120 self.OnLinkExportSurface)
121 121
122 - tooltip = wx.ToolTip(_("Export 3D mask (voxels)"))  
123 - link_export_mask = hl.HyperLinkCtrl(self, -1,_("Export mask..."))  
124 - link_export_mask.SetUnderlines(False, False, False)  
125 - link_export_mask.SetColours("BLACK", "BLACK", "BLACK")  
126 - link_export_mask.SetToolTip(tooltip)  
127 - link_export_mask.AutoBrowse(False)  
128 - link_export_mask.UpdateLink()  
129 - link_export_mask.Bind(hl.EVT_HYPERLINK_LEFT,  
130 - self.OnLinkExportMask) 122 + #tooltip = wx.ToolTip(_("Export 3D mask (voxels)"))
  123 + #link_export_mask = hl.HyperLinkCtrl(self, -1,_("Export mask..."))
  124 + #link_export_mask.SetUnderlines(False, False, False)
  125 + #link_export_mask.SetColours("BLACK", "BLACK", "BLACK")
  126 + #link_export_mask.SetToolTip(tooltip)
  127 + #link_export_mask.AutoBrowse(False)
  128 + #link_export_mask.UpdateLink()
  129 + #link_export_mask.Bind(hl.EVT_HYPERLINK_LEFT,
  130 + # self.OnLinkExportMask)
131 131
132 132
133 #tooltip = wx.ToolTip("Request rapid prototyping services") 133 #tooltip = wx.ToolTip("Request rapid prototyping services")
@@ -157,19 +157,19 @@ class InnerTaskPanel(wx.Panel): @@ -157,19 +157,19 @@ class InnerTaskPanel(wx.Panel):
157 BMP_TAKE_PICTURE = wx.Bitmap(\ 157 BMP_TAKE_PICTURE = wx.Bitmap(\
158 "../icons/tool_photo_original.png", 158 "../icons/tool_photo_original.png",
159 wx.BITMAP_TYPE_PNG) 159 wx.BITMAP_TYPE_PNG)
160 - BMP_EXPORT_MASK = wx.Bitmap("../icons/mask.png",  
161 - wx.BITMAP_TYPE_PNG) 160 + #BMP_EXPORT_MASK = wx.Bitmap("../icons/mask.png",
  161 + # wx.BITMAP_TYPE_PNG)
162 else: 162 else:
163 BMP_EXPORT_SURFACE = wx.Bitmap("../icons/surface_export.png", 163 BMP_EXPORT_SURFACE = wx.Bitmap("../icons/surface_export.png",
164 wx.BITMAP_TYPE_PNG) 164 wx.BITMAP_TYPE_PNG)
165 BMP_TAKE_PICTURE = wx.Bitmap("../icons/tool_photo.png", 165 BMP_TAKE_PICTURE = wx.Bitmap("../icons/tool_photo.png",
166 wx.BITMAP_TYPE_PNG) 166 wx.BITMAP_TYPE_PNG)
167 - BMP_EXPORT_MASK = wx.Bitmap("../icons/mask_small.png",  
168 - wx.BITMAP_TYPE_PNG) 167 + #BMP_EXPORT_MASK = wx.Bitmap("../icons/mask_small.png",
  168 + # wx.BITMAP_TYPE_PNG)
169 169
170 170
171 - bmp_list = [BMP_TAKE_PICTURE, BMP_EXPORT_SURFACE,  
172 - BMP_EXPORT_MASK] 171 + bmp_list = [BMP_TAKE_PICTURE, BMP_EXPORT_SURFACE]#,
  172 + # BMP_EXPORT_MASK]
173 for bmp in bmp_list: 173 for bmp in bmp_list:
174 bmp.SetWidth(25) 174 bmp.SetWidth(25)
175 bmp.SetHeight(25) 175 bmp.SetHeight(25)
@@ -183,9 +183,9 @@ class InnerTaskPanel(wx.Panel): @@ -183,9 +183,9 @@ class InnerTaskPanel(wx.Panel):
183 button_surface = pbtn.PlateButton(self, BTN_SURFACE, "", 183 button_surface = pbtn.PlateButton(self, BTN_SURFACE, "",
184 BMP_EXPORT_SURFACE, 184 BMP_EXPORT_SURFACE,
185 style=button_style) 185 style=button_style)
186 - button_mask = pbtn.PlateButton(self, BTN_MASK, "",  
187 - BMP_EXPORT_MASK,  
188 - style=button_style) 186 + #button_mask = pbtn.PlateButton(self, BTN_MASK, "",
  187 + # BMP_EXPORT_MASK,
  188 + # style=button_style)
189 #button_request_rp = pbtn.PlateButton(self, BTN_REQUEST_RP, "", 189 #button_request_rp = pbtn.PlateButton(self, BTN_REQUEST_RP, "",
190 # BMP_IMPORT, style=button_style) 190 # BMP_IMPORT, style=button_style)
191 #button_report = pbtn.PlateButton(self, BTN_REPORT, "", 191 #button_report = pbtn.PlateButton(self, BTN_REPORT, "",
@@ -199,14 +199,14 @@ class InnerTaskPanel(wx.Panel): @@ -199,14 +199,14 @@ class InnerTaskPanel(wx.Panel):
199 flag_link = wx.EXPAND|wx.GROW|wx.LEFT|wx.TOP 199 flag_link = wx.EXPAND|wx.GROW|wx.LEFT|wx.TOP
200 flag_button = wx.EXPAND | wx.GROW 200 flag_button = wx.EXPAND | wx.GROW
201 201
202 - fixed_sizer = wx.FlexGridSizer(rows=3, cols=2, hgap=2, vgap=0) 202 + fixed_sizer = wx.FlexGridSizer(rows=2, cols=2, hgap=2, vgap=0)
203 fixed_sizer.AddGrowableCol(0, 1) 203 fixed_sizer.AddGrowableCol(0, 1)
204 fixed_sizer.AddMany([ (link_export_picture, 1, flag_link, 3), 204 fixed_sizer.AddMany([ (link_export_picture, 1, flag_link, 3),
205 (button_picture, 0, flag_button), 205 (button_picture, 0, flag_button),
206 (link_export_surface, 1, flag_link, 3), 206 (link_export_surface, 1, flag_link, 3),
207 - (button_surface, 0, flag_button),#])#,  
208 - (link_export_mask, 1, flag_link, 3),  
209 - (button_mask, 0, flag_button)]) 207 + (button_surface, 0, flag_button),])
  208 + #(link_export_mask, 1, flag_link, 3),
  209 + #(button_mask, 0, flag_button)])
210 #(link_report, 0, flag_link, 3), 210 #(link_report, 0, flag_link, 3),
211 #(button_report, 0, flag_button), 211 #(button_report, 0, flag_button),
212 #(link_request_rp, 1, flag_link, 3), 212 #(link_request_rp, 1, flag_link, 3),