eac24f4f8f25444c3f8036b7b53e54ebee8c29b2,invesalius/gui/task_slice.py,EditionTools,__init__,#EditionTools#Any#,674

Before Change


        dc.SetFont(self.GetFont())
        width, height = dc.GetTextExtent("MMM")

        spin_brush_size = wx.SpinCtrl(self, -1, "", size=(width + 20, -1))
        spin_brush_size.SetRange(1,100)
        spin_brush_size.SetValue(const.BRUSH_SIZE)
        spin_brush_size.Bind(wx.EVT_SPINCTRL, self.OnBrushSize)
        self.spin = spin_brush_size

        combo_brush_op = wx.ComboBox(self, -1, "", size=(15,-1),
                                     choices = const.BRUSH_OP_NAME,

After Change


        btn_brush_format.SetMenu(menu)
        self.btn_brush_format = btn_brush_format

        spin_brush_size = InvSpinCtrl(self, -1, value=const.BRUSH_SIZE, min_value=1, max_value=1000, spin_button=False)
        // To calculate best width to spinctrl
        spin_brush_size.CalcSizeFromTextSize("MMMM")
        spin_brush_size.Bind(wx.EVT_SPINCTRL, self.OnBrushSize)
        self.spin = spin_brush_size

        combo_brush_op = wx.ComboBox(self, -1, "", size=(15,-1),
                                     choices = const.BRUSH_OP_NAME,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: invesalius/invesalius3
Commit Name: eac24f4f8f25444c3f8036b7b53e54ebee8c29b2
Time: 2019-04-16
Author: totonixsame@gmail.com
File Name: invesalius/gui/task_slice.py
Class Name: EditionTools
Method Name: __init__


Project Name: invesalius/invesalius3
Commit Name: eac24f4f8f25444c3f8036b7b53e54ebee8c29b2
Time: 2019-04-16
Author: totonixsame@gmail.com
File Name: invesalius/gui/task_slice.py
Class Name: WatershedTool
Method Name: __init__


Project Name: invesalius/invesalius3
Commit Name: eac24f4f8f25444c3f8036b7b53e54ebee8c29b2
Time: 2019-04-16
Author: totonixsame@gmail.com
File Name: invesalius/gui/widgets/gradient.py
Class Name: GradientCtrl
Method Name: _draw_controls