From: Robin Dunn Date: Wed, 2 Mar 2005 20:42:17 +0000 (+0000) Subject: allow border flags X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7f2a8ba84486d549d655b095096127fb4014dd1c?ds=sidebyside allow border flags git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wx/lib/statbmp.py b/wxPython/wx/lib/statbmp.py index fa2db42356..54dd9cc696 100644 --- a/wxPython/wx/lib/statbmp.py +++ b/wxPython/wx/lib/statbmp.py @@ -21,7 +21,9 @@ class GenStaticBitmap(wx.PyControl): pos = wx.DefaultPosition, size = wx.DefaultSize, style = 0, name = "genstatbmp"): - wx.PyControl.__init__(self, parent, ID, pos, size, style|wx.NO_BORDER, + if not style & wx.BORDER_MASK: + style = style | wx.BORDER_NONE + wx.PyControl.__init__(self, parent, ID, pos, size, style, wx.DefaultValidator, name) self._bitmap = bitmap self.InheritAttributes()