From: Youness Alaoui Date: Tue, 28 Jul 2015 20:04:06 +0000 (-0400) Subject: Change the overlay for ImageButton and fix layout when selecting an image X-Git-Tag: lulzbot-15.02.1-2.01~56^2~25 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=02a0c396794e2d0e04ffb71e353ea62314ac2967;p=cura.git Change the overlay for ImageButton and fix layout when selecting an image --- diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index 88162d5a..f2dff42c 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -164,6 +164,7 @@ class ImageButton(wx.Panel): if ib == self: continue ib.SetValue(False) + self.Layout() def createOverlay(self, bitmap, overlay): result = bitmap.GetSubBitmap(wx.Rect(0, 0, *bitmap.Size)) @@ -1163,8 +1164,8 @@ class LulzbotToolheadSelectPage(InfoPage): self.panel = self.AddPanel() ib1 = ImageButton(self.panel, "Mini", wx.Bitmap(resources.getPathForImage('Lulzbot_Toolhead_TAZ_Flexystruder_v1.jpg')), "Some description", style=ImageButton.IB_GROUP) ib2 = ImageButton(self.panel, "TAZ 4 ", wx.Bitmap(resources.getPathForImage('Lulzbot_Toolhead_TAZ_Single_v2.jpg')), "Some description 2") - ib3 = ImageButton(self.panel, "TAZ 5 ", wx.Bitmap(resources.getPathForImage('Lulzbot_Toolhead_TAZ_Flexystruder_v1.jpg')), "Some description 3") - ib4 = ImageButton(self.panel, "Others ", wx.Bitmap(resources.getPathForImage('Lulzbot_Toolhead_TAZ_Dually_v1.jpg')), "Some description\n4") + ib3 = ImageButton(self.panel, "TAZ 5 ", wx.Bitmap(resources.getPathForImage('Lulzbot_Toolhead_TAZ_Flexystruder_v1.jpg'))) + ib4 = ImageButton(self.panel, "Others ", wx.Bitmap(resources.getPathForImage('Lulzbot_Toolhead_TAZ_Dually_v1.jpg'))) self.panel.GetSizer().Add(ib1, pos=(0, 0), flag=wx.EXPAND) self.panel.GetSizer().Add(ib2, pos=(0, 1), flag=wx.EXPAND) self.panel.GetSizer().Add(ib3, pos=(1, 0), flag=wx.EXPAND) diff --git a/resources/images/ImageButton_Overlay.png b/resources/images/ImageButton_Overlay.png index 663ccea4..b5e3da7a 100644 Binary files a/resources/images/ImageButton_Overlay.png and b/resources/images/ImageButton_Overlay.png differ