Commit 8d5e0c8b82ef53bc51686b6f7e3de327e7a8732a
1 parent
dd952eab
Exists in
wxgtk3_b5
Solved the problem with left icons
Showing
4 changed files
with
18 additions
and
16 deletions
Show diff stats
invesalius/gui/task_exporter.py
... | ... | @@ -160,26 +160,28 @@ class InnerTaskPanel(wx.Panel): |
160 | 160 | if sys.platform == 'darwin': |
161 | 161 | BMP_EXPORT_SURFACE = wx.Bitmap(\ |
162 | 162 | "../icons/surface_export_original.png", |
163 | - wx.BITMAP_TYPE_PNG) | |
163 | + wx.BITMAP_TYPE_PNG).ConvertToImage()\ | |
164 | + .Rescale(25, 25).ConvertToBitmap() | |
164 | 165 | BMP_TAKE_PICTURE = wx.Bitmap(\ |
165 | 166 | "../icons/tool_photo_original.png", |
166 | - wx.BITMAP_TYPE_PNG) | |
167 | + wx.BITMAP_TYPE_PNG).ConvertToImage()\ | |
168 | + .Rescale(25, 25).ConvertToBitmap() | |
169 | + | |
167 | 170 | #BMP_EXPORT_MASK = wx.Bitmap("../icons/mask.png", |
168 | 171 | # wx.BITMAP_TYPE_PNG) |
169 | 172 | else: |
170 | 173 | BMP_EXPORT_SURFACE = wx.Bitmap("../icons/surface_export.png", |
171 | - wx.BITMAP_TYPE_PNG) | |
174 | + wx.BITMAP_TYPE_PNG).ConvertToImage()\ | |
175 | + .Rescale(25, 25).ConvertToBitmap() | |
176 | + | |
172 | 177 | BMP_TAKE_PICTURE = wx.Bitmap("../icons/tool_photo.png", |
173 | - wx.BITMAP_TYPE_PNG) | |
178 | + wx.BITMAP_TYPE_PNG).ConvertToImage()\ | |
179 | + .Rescale(25, 25).ConvertToBitmap() | |
180 | + | |
174 | 181 | #BMP_EXPORT_MASK = wx.Bitmap("../icons/mask_small.png", |
175 | 182 | # wx.BITMAP_TYPE_PNG) |
176 | 183 | |
177 | 184 | |
178 | - bmp_list = [BMP_TAKE_PICTURE, BMP_EXPORT_SURFACE]#, | |
179 | - # BMP_EXPORT_MASK] | |
180 | - for bmp in bmp_list: | |
181 | - bmp.SetWidth(25) | |
182 | - bmp.SetHeight(25) | |
183 | 185 | |
184 | 186 | # Buttons related to hyperlinks |
185 | 187 | button_style = pbtn.PB_STYLE_SQUARE | pbtn.PB_STYLE_DEFAULT | ... | ... |
invesalius/gui/task_importer.py
... | ... | @@ -94,9 +94,9 @@ class InnerTaskPanel(wx.Panel): |
94 | 94 | BMP_OPEN_PROJECT = wx.Bitmap("../icons/file_open.png", wx.BITMAP_TYPE_PNG) |
95 | 95 | |
96 | 96 | bmp_list = [BMP_IMPORT, BMP_NET, BMP_OPEN_PROJECT] |
97 | - for bmp in bmp_list: | |
98 | - bmp.SetWidth(25) | |
99 | - bmp.SetHeight(25) | |
97 | + #for bmp in bmp_list: | |
98 | + #bmp.SetWidth(25) | |
99 | + #bmp.SetHeight(25) | |
100 | 100 | |
101 | 101 | # Buttons related to hyperlinks |
102 | 102 | button_style = pbtn.PB_STYLE_SQUARE | pbtn.PB_STYLE_DEFAULT | ... | ... |
invesalius/gui/task_slice.py
... | ... | @@ -70,8 +70,8 @@ class InnerTaskPanel(wx.Panel): |
70 | 70 | |
71 | 71 | # Image(s) for buttons |
72 | 72 | BMP_ADD = wx.Bitmap("../icons/object_add.png", wx.BITMAP_TYPE_PNG) |
73 | - BMP_ADD.SetWidth(25) | |
74 | - BMP_ADD.SetHeight(25) | |
73 | + #BMP_ADD.SetWidth(25) | |
74 | + #BMP_ADD.SetHeight(25) | |
75 | 75 | |
76 | 76 | # Button for creating new surface |
77 | 77 | button_new_mask = pbtn.PlateButton(self, BTN_NEW, "", BMP_ADD, style=\ | ... | ... |
invesalius/gui/task_surface.py
... | ... | @@ -73,8 +73,8 @@ class InnerTaskPanel(wx.Panel): |
73 | 73 | |
74 | 74 | |
75 | 75 | BMP_ADD = wx.Bitmap("../icons/object_add.png", wx.BITMAP_TYPE_PNG) |
76 | - BMP_ADD.SetWidth(25) | |
77 | - BMP_ADD.SetHeight(25) | |
76 | + #BMP_ADD.SetWidth(25) | |
77 | + #BMP_ADD.SetHeight(25) | |
78 | 78 | |
79 | 79 | # Button for creating new surface |
80 | 80 | button_new_surface = pbtn.PlateButton(self, BTN_NEW, "", BMP_ADD, style=\ | ... | ... |