Commit 1874f5722e677f516193abee793aea6c4f105e8d
1 parent
e00cd715
Exists in
master
and in
68 other branches
ADD: Minor layout improvements (#156)
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
invesalius/gui/data_notebook.py
... | ... | @@ -80,7 +80,7 @@ class MaskPage(wx.Panel): |
80 | 80 | self.buttonctrl = ButtonControlPanel(self) |
81 | 81 | |
82 | 82 | sizer = wx.BoxSizer(wx.VERTICAL) |
83 | - sizer.Add(self.listctrl, 0, wx.EXPAND) | |
83 | + sizer.Add(self.listctrl, 0, wx.EXPAND|wx.TOP, 5) | |
84 | 84 | sizer.Add(self.buttonctrl, 0, wx.EXPAND) |
85 | 85 | self.SetSizer(sizer) |
86 | 86 | self.Fit() |
... | ... | @@ -99,7 +99,7 @@ class ButtonControlPanel(wx.Panel): |
99 | 99 | |
100 | 100 | def __init_gui(self): |
101 | 101 | |
102 | - # Bitmaps | |
102 | + # Bitmaps to be used in plate buttons | |
103 | 103 | BMP_NEW = wx.Bitmap("../icons/data_new.png", |
104 | 104 | wx.BITMAP_TYPE_PNG) |
105 | 105 | BMP_REMOVE = wx.Bitmap("../icons/data_remove.png", |
... | ... | @@ -121,12 +121,13 @@ class ButtonControlPanel(wx.Panel): |
121 | 121 | |
122 | 122 | # Add all controls to gui |
123 | 123 | sizer = wx.BoxSizer(wx.HORIZONTAL) |
124 | - sizer.Add(button_new, 0, wx.GROW|wx.EXPAND|wx.LEFT, 10) | |
124 | + sizer.Add(button_new, 0, wx.GROW|wx.EXPAND|wx.LEFT) | |
125 | 125 | sizer.Add(button_remove, 0, wx.GROW|wx.EXPAND) |
126 | 126 | sizer.Add(button_duplicate, 0, wx.GROW|wx.EXPAND) |
127 | 127 | self.SetSizer(sizer) |
128 | 128 | self.Fit() |
129 | 129 | |
130 | + # Bindings | |
130 | 131 | self.Bind(wx.EVT_BUTTON, self.OnButton) |
131 | 132 | |
132 | 133 | def OnButton(self, evt): | ... | ... |