Commit 3829e21ef4ed3fabbd6675a8e11d37e618c74b1d
1 parent
9f05fe97
Exists in
master
and in
68 other branches
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 | 119 | link_export_surface.Bind(hl.EVT_HYPERLINK_LEFT, |
120 | 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 | 133 | #tooltip = wx.ToolTip("Request rapid prototyping services") |
... | ... | @@ -157,19 +157,19 @@ class InnerTaskPanel(wx.Panel): |
157 | 157 | BMP_TAKE_PICTURE = wx.Bitmap(\ |
158 | 158 | "../icons/tool_photo_original.png", |
159 | 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 | 162 | else: |
163 | 163 | BMP_EXPORT_SURFACE = wx.Bitmap("../icons/surface_export.png", |
164 | 164 | wx.BITMAP_TYPE_PNG) |
165 | 165 | BMP_TAKE_PICTURE = wx.Bitmap("../icons/tool_photo.png", |
166 | 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 | 173 | for bmp in bmp_list: |
174 | 174 | bmp.SetWidth(25) |
175 | 175 | bmp.SetHeight(25) |
... | ... | @@ -183,9 +183,9 @@ class InnerTaskPanel(wx.Panel): |
183 | 183 | button_surface = pbtn.PlateButton(self, BTN_SURFACE, "", |
184 | 184 | BMP_EXPORT_SURFACE, |
185 | 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 | 189 | #button_request_rp = pbtn.PlateButton(self, BTN_REQUEST_RP, "", |
190 | 190 | # BMP_IMPORT, style=button_style) |
191 | 191 | #button_report = pbtn.PlateButton(self, BTN_REPORT, "", |
... | ... | @@ -199,14 +199,14 @@ class InnerTaskPanel(wx.Panel): |
199 | 199 | flag_link = wx.EXPAND|wx.GROW|wx.LEFT|wx.TOP |
200 | 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 | 203 | fixed_sizer.AddGrowableCol(0, 1) |
204 | 204 | fixed_sizer.AddMany([ (link_export_picture, 1, flag_link, 3), |
205 | 205 | (button_picture, 0, flag_button), |
206 | 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 | 210 | #(link_report, 0, flag_link, 3), |
211 | 211 | #(button_report, 0, flag_button), |
212 | 212 | #(link_request_rp, 1, flag_link, 3), | ... | ... |