Commit 8ece37b8d2011137ac27476bc281aa660ecfb877
1 parent
9c879342
Exists in
master
and in
68 other branches
ENH: Win32 gui text
Showing
2 changed files
with
10 additions
and
2 deletions
Show diff stats
invesalius/gui/data_notebook.py
| ... | ... | @@ -120,6 +120,8 @@ class MasksListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
| 120 | 120 | |
| 121 | 121 | if sys.platform != 'win32': |
| 122 | 122 | self.SetImageList(self.imagelist, wx.IMAGE_LIST_SMALL) |
| 123 | + else: | |
| 124 | + self.SetImageList(self.imagelist) | |
| 123 | 125 | |
| 124 | 126 | self.image_gray = Image.open("../icons/object_colour.jpg") |
| 125 | 127 | |
| ... | ... | @@ -375,6 +377,9 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
| 375 | 377 | |
| 376 | 378 | if sys.platform != 'win32': |
| 377 | 379 | self.SetImageList(self.imagelist, wx.IMAGE_LIST_SMALL) |
| 380 | + else: | |
| 381 | + self.SetImageList(self.imagelist) | |
| 382 | + | |
| 378 | 383 | |
| 379 | 384 | def OnItemActivated(self, evt): |
| 380 | 385 | self.ToggleItem(evt.m_itemIndex) |
| ... | ... | @@ -457,6 +462,9 @@ class AnnotationsListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
| 457 | 462 | |
| 458 | 463 | if sys.platform != 'win32': |
| 459 | 464 | self.SetImageList(self.imagelist, wx.IMAGE_LIST_SMALL) |
| 465 | + else: | |
| 466 | + self.SetImageList(self.imagelist) | |
| 467 | + | |
| 460 | 468 | |
| 461 | 469 | def OnItemActivated(self, evt): |
| 462 | 470 | self.ToggleItem(evt.m_itemIndex) | ... | ... |
invesalius/gui/task_slice.py
| ... | ... | @@ -408,7 +408,7 @@ class EditionTools(wx.Panel): |
| 408 | 408 | btn_brush_format.SetMenu(menu) |
| 409 | 409 | self.btn_brush_format = btn_brush_format |
| 410 | 410 | |
| 411 | - spin_brush_size = wx.SpinCtrl(self, -1, "", (30, 50)) | |
| 411 | + spin_brush_size = wx.SpinCtrl(self, -1, "", (20, 50)) | |
| 412 | 412 | spin_brush_size.SetRange(1,100) |
| 413 | 413 | spin_brush_size.SetValue(const.BRUSH_SIZE) |
| 414 | 414 | spin_brush_size.Bind(wx.EVT_TEXT, self.OnBrushSize) |
| ... | ... | @@ -426,7 +426,7 @@ class EditionTools(wx.Panel): |
| 426 | 426 | line2 = wx.BoxSizer(wx.HORIZONTAL) |
| 427 | 427 | line2.Add(btn_brush_format, 0, wx.EXPAND|wx.GROW|wx.TOP|wx.RIGHT, 0) |
| 428 | 428 | line2.Add(spin_brush_size, 0, wx.RIGHT, 5) |
| 429 | - line2.Add(combo_brush_op, 1, wx.TOP|wx.RIGHT|wx.LEFT, 5) | |
| 429 | + line2.Add(combo_brush_op, 1, wx.EXPAND|wx.TOP|wx.RIGHT|wx.LEFT, 5) | |
| 430 | 430 | |
| 431 | 431 | ## LINE 3 |
| 432 | 432 | text_thresh = wx.StaticText(self, -1, "Brush threshold range:") | ... | ... |