Commit d5674936b196a28f160aa963eee180300eaf33f5
1 parent
59db08fa
Exists in
master
and in
68 other branches
ENH: Removed the ugly 'S' button that saves raycasting presets
Showing
1 changed file
with
4 additions
and
10 deletions
Show diff stats
invesalius/gui/default_viewers.py
... | ... | @@ -344,11 +344,8 @@ class VolumeToolPanel(wx.Panel): |
344 | 344 | button_slice_plane = self.button_slice_plane = pbtn.PlateButton(self, BUTTON_SLICE_PLANE,"", |
345 | 345 | BMP_SLICE_PLANE, style=pbtn.PB_STYLE_SQUARE, |
346 | 346 | size=(24,24)) |
347 | - button_slice_plane.Bind(wx.EVT_LEFT_DOWN, self.OnButtonSlicePlane) | |
348 | 347 | |
349 | 348 | self.button_raycasting = button_raycasting |
350 | - self.button_raycasting.Bind(wx.EVT_LEFT_DOWN, self.OnButtonRaycasting) | |
351 | - | |
352 | 349 | |
353 | 350 | # VOLUME VIEW ANGLE BUTTON |
354 | 351 | BMP_FRONT = wx.Bitmap(ID_TO_BMP[const.VOL_FRONT][1], |
... | ... | @@ -357,7 +354,6 @@ class VolumeToolPanel(wx.Panel): |
357 | 354 | BMP_FRONT, size=(24,24), |
358 | 355 | style=pbtn.PB_STYLE_SQUARE) |
359 | 356 | self.button_view = button_view |
360 | - self.button_view.Bind(wx.EVT_LEFT_DOWN, self.OnButtonView) | |
361 | 357 | |
362 | 358 | # VOLUME COLOUR BUTTON |
363 | 359 | if sys.platform == 'linux2': |
... | ... | @@ -369,19 +365,14 @@ class VolumeToolPanel(wx.Panel): |
369 | 365 | |
370 | 366 | button_colour= csel.ColourSelect(self, 111,colour=(0,0,0), |
371 | 367 | size=size) |
372 | - button_colour.Bind(csel.EVT_COLOURSELECT, self.OnSelectColour) | |
373 | 368 | self.button_colour = button_colour |
374 | 369 | |
375 | - save_preset = wx.Button(self, -1, "S", size=size) | |
376 | - self.save_preset = save_preset | |
377 | - | |
378 | 370 | # SIZER TO ORGANIZE ALL |
379 | 371 | sizer = wx.BoxSizer(wx.VERTICAL) |
380 | 372 | sizer.Add(button_colour, 0, wx.ALL, sp) |
381 | 373 | sizer.Add(button_raycasting, 0, wx.TOP|wx.BOTTOM, 1) |
382 | 374 | sizer.Add(button_view, 0, wx.TOP|wx.BOTTOM, 1) |
383 | 375 | sizer.Add(button_slice_plane, 0, wx.TOP|wx.BOTTOM, 1) |
384 | - sizer.Add(save_preset, 0, wx.TOP|wx.BOTTOM, 1) | |
385 | 376 | |
386 | 377 | sizer.Fit(self) |
387 | 378 | |
... | ... | @@ -399,7 +390,10 @@ class VolumeToolPanel(wx.Panel): |
399 | 390 | 'Change volume viewer gui colour') |
400 | 391 | |
401 | 392 | def __bind_events_wx(self): |
402 | - self.save_preset.Bind(wx.EVT_BUTTON, self.OnSavePreset) | |
393 | + self.button_slice_plane.Bind(wx.EVT_LEFT_DOWN, self.OnButtonSlicePlane) | |
394 | + self.button_raycasting.Bind(wx.EVT_LEFT_DOWN, self.OnButtonRaycasting) | |
395 | + self.button_view.Bind(wx.EVT_LEFT_DOWN, self.OnButtonView) | |
396 | + self.button_colour.Bind(csel.EVT_COLOURSELECT, self.OnSelectColour) | |
403 | 397 | |
404 | 398 | def OnButtonRaycasting(self, evt): |
405 | 399 | # MENU RELATED TO RAYCASTING TYPES | ... | ... |