From 5e8b10e9027497ec09ce669de288b757a1fbcfc9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 15 Jan 2004 23:15:53 +0000 Subject: [PATCH] On Windows the wxBitmapButton can't be borderless if you use wxBU_AUTODRAW, but wxGenBitmapButton can do it easily git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/tools/XRCed/tools.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wxPython/wx/tools/XRCed/tools.py b/wxPython/wx/tools/XRCed/tools.py index a7819a5665..061e4496c7 100644 --- a/wxPython/wx/tools/XRCed/tools.py +++ b/wxPython/wx/tools/XRCed/tools.py @@ -101,8 +101,10 @@ class Tools(wxPanel): EVT_KEY_UP(self, self.OnKeyUp) def AddButton(self, id, image, text): - button = wxBitmapButton(self, id, image, size=self.TOOL_SIZE, - style=wxBU_AUTODRAW|wxNO_BORDER|wxWANTS_CHARS) + from wxPython.lib import buttons + button = buttons.wxGenBitmapButton(self, id, image, size=self.TOOL_SIZE, + style=wxNO_BORDER|wxWANTS_CHARS) + button.SetBezelWidth(0) EVT_KEY_DOWN(button, self.OnKeyDown) EVT_KEY_UP(button, self.OnKeyUp) button.SetToolTipString(text) -- 2.47.2