From 7945d095386d85ff4de58d304636b4763e0cd0ba Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Tue, 23 Sep 2014 16:03:24 -0300 Subject: [PATCH] Solved the problem with left icons --- invesalius/gui/task_exporter.py | 20 +++++++++++--------- invesalius/gui/task_importer.py | 6 +++--- invesalius/gui/task_slice.py | 4 ++-- invesalius/gui/task_surface.py | 4 ++-- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/invesalius/gui/task_exporter.py b/invesalius/gui/task_exporter.py index 5f5629e..ecd293b 100644 --- a/invesalius/gui/task_exporter.py +++ b/invesalius/gui/task_exporter.py @@ -160,26 +160,28 @@ class InnerTaskPanel(wx.Panel): if sys.platform == 'darwin': BMP_EXPORT_SURFACE = wx.Bitmap(\ "../icons/surface_export_original.png", - wx.BITMAP_TYPE_PNG) + wx.BITMAP_TYPE_PNG).ConvertToImage()\ + .Rescale(25, 25).ConvertToBitmap() BMP_TAKE_PICTURE = wx.Bitmap(\ "../icons/tool_photo_original.png", - wx.BITMAP_TYPE_PNG) + wx.BITMAP_TYPE_PNG).ConvertToImage()\ + .Rescale(25, 25).ConvertToBitmap() + #BMP_EXPORT_MASK = wx.Bitmap("../icons/mask.png", # wx.BITMAP_TYPE_PNG) else: BMP_EXPORT_SURFACE = wx.Bitmap("../icons/surface_export.png", - wx.BITMAP_TYPE_PNG) + wx.BITMAP_TYPE_PNG).ConvertToImage()\ + .Rescale(25, 25).ConvertToBitmap() + BMP_TAKE_PICTURE = wx.Bitmap("../icons/tool_photo.png", - wx.BITMAP_TYPE_PNG) + wx.BITMAP_TYPE_PNG).ConvertToImage()\ + .Rescale(25, 25).ConvertToBitmap() + #BMP_EXPORT_MASK = wx.Bitmap("../icons/mask_small.png", # wx.BITMAP_TYPE_PNG) - bmp_list = [BMP_TAKE_PICTURE, BMP_EXPORT_SURFACE]#, - # BMP_EXPORT_MASK] - for bmp in bmp_list: - bmp.SetWidth(25) - bmp.SetHeight(25) # Buttons related to hyperlinks button_style = pbtn.PB_STYLE_SQUARE | pbtn.PB_STYLE_DEFAULT diff --git a/invesalius/gui/task_importer.py b/invesalius/gui/task_importer.py index 8dad9fe..0cf763a 100644 --- a/invesalius/gui/task_importer.py +++ b/invesalius/gui/task_importer.py @@ -94,9 +94,9 @@ class InnerTaskPanel(wx.Panel): BMP_OPEN_PROJECT = wx.Bitmap("../icons/file_open.png", wx.BITMAP_TYPE_PNG) bmp_list = [BMP_IMPORT, BMP_NET, BMP_OPEN_PROJECT] - for bmp in bmp_list: - bmp.SetWidth(25) - bmp.SetHeight(25) + #for bmp in bmp_list: + #bmp.SetWidth(25) + #bmp.SetHeight(25) # Buttons related to hyperlinks button_style = pbtn.PB_STYLE_SQUARE | pbtn.PB_STYLE_DEFAULT diff --git a/invesalius/gui/task_slice.py b/invesalius/gui/task_slice.py index 47a87f7..a884b0f 100644 --- a/invesalius/gui/task_slice.py +++ b/invesalius/gui/task_slice.py @@ -70,8 +70,8 @@ class InnerTaskPanel(wx.Panel): # Image(s) for buttons BMP_ADD = wx.Bitmap("../icons/object_add.png", wx.BITMAP_TYPE_PNG) - BMP_ADD.SetWidth(25) - BMP_ADD.SetHeight(25) + #BMP_ADD.SetWidth(25) + #BMP_ADD.SetHeight(25) # Button for creating new surface button_new_mask = pbtn.PlateButton(self, BTN_NEW, "", BMP_ADD, style=\ diff --git a/invesalius/gui/task_surface.py b/invesalius/gui/task_surface.py index 44ca30c..6166caf 100644 --- a/invesalius/gui/task_surface.py +++ b/invesalius/gui/task_surface.py @@ -73,8 +73,8 @@ class InnerTaskPanel(wx.Panel): BMP_ADD = wx.Bitmap("../icons/object_add.png", wx.BITMAP_TYPE_PNG) - BMP_ADD.SetWidth(25) - BMP_ADD.SetHeight(25) + #BMP_ADD.SetWidth(25) + #BMP_ADD.SetHeight(25) # Button for creating new surface button_new_surface = pbtn.PlateButton(self, BTN_NEW, "", BMP_ADD, style=\ -- libgit2 0.21.2