X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4c013b2b1c033e33da3f3bdfe03ab4f91eaf5c1..11f0bb6988110777c5ed8ef944cbdd8f8684d786:/wxPython/wx/tools/XRCed/tools.py diff --git a/wxPython/wx/tools/XRCed/tools.py b/wxPython/wx/tools/XRCed/tools.py index a7819a5665..7d852d0ef6 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) @@ -112,7 +114,7 @@ class Tools(wxPanel): def AddGroup(self, name): # Each group is inside box box = wxStaticBox(self, -1, name, style=wxWANTS_CHARS) - box.SetFont(smallerFont) + box.SetFont(g.smallerFont()) boxSizer = wxStaticBoxSizer(box, wxVERTICAL) boxSizer.Add((0, 4)) self.curSizer = wxGridSizer(0, 3)