Commit eed3a27c22bac529e5dc50cd730a372c3037ebf7
1 parent
8ece37b8
Exists in
master
and in
68 other branches
ENH: Font size on Windows
Showing
1 changed file
with
4 additions
and
14 deletions
Show diff stats
invesalius/gui/data_notebook.py
| ... | ... | @@ -118,10 +118,7 @@ class MasksListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
| 118 | 118 | bitmap.SetHeight(16) |
| 119 | 119 | img_check = self.imagelist.Add(bitmap) |
| 120 | 120 | |
| 121 | - if sys.platform != 'win32': | |
| 122 | - self.SetImageList(self.imagelist, wx.IMAGE_LIST_SMALL) | |
| 123 | - else: | |
| 124 | - self.SetImageList(self.imagelist) | |
| 121 | + self.SetImageList(self.imagelist,wx.IMAGE_LIST_SMALL) | |
| 125 | 122 | |
| 126 | 123 | self.image_gray = Image.open("../icons/object_colour.jpg") |
| 127 | 124 | |
| ... | ... | @@ -246,8 +243,7 @@ class SurfacesListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
| 246 | 243 | bitmap.SetHeight(16) |
| 247 | 244 | img_check = self.imagelist.Add(bitmap) |
| 248 | 245 | |
| 249 | - if sys.platform != 'win32': | |
| 250 | - self.SetImageList(self.imagelist, wx.IMAGE_LIST_SMALL) | |
| 246 | + self.SetImageList(self.imagelist,wx.IMAGE_LIST_SMALL) | |
| 251 | 247 | |
| 252 | 248 | self.image_gray = Image.open("../icons/object_colour.jpg") |
| 253 | 249 | |
| ... | ... | @@ -375,10 +371,7 @@ class MeasuresListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
| 375 | 371 | bitmap.SetHeight(16) |
| 376 | 372 | self.img_colour = self.imagelist.Add(bitmap) |
| 377 | 373 | |
| 378 | - if sys.platform != 'win32': | |
| 379 | - self.SetImageList(self.imagelist, wx.IMAGE_LIST_SMALL) | |
| 380 | - else: | |
| 381 | - self.SetImageList(self.imagelist) | |
| 374 | + self.SetImageList(self.imagelist,wx.IMAGE_LIST_SMALL) | |
| 382 | 375 | |
| 383 | 376 | |
| 384 | 377 | def OnItemActivated(self, evt): |
| ... | ... | @@ -460,10 +453,7 @@ class AnnotationsListCtrlPanel(wx.ListCtrl, listmix.TextEditMixin): |
| 460 | 453 | bitmap.SetHeight(16) |
| 461 | 454 | self.img_colour = self.imagelist.Add(bitmap) |
| 462 | 455 | |
| 463 | - if sys.platform != 'win32': | |
| 464 | - self.SetImageList(self.imagelist, wx.IMAGE_LIST_SMALL) | |
| 465 | - else: | |
| 466 | - self.SetImageList(self.imagelist) | |
| 456 | + self.SetImageList(self.imagelist,wx.IMAGE_LIST_SMALL) | |
| 467 | 457 | |
| 468 | 458 | |
| 469 | 459 | def OnItemActivated(self, evt): | ... | ... |