Merge pull request #658 from RobinD42/fix-issue651

Set a default background colour for the generic buttons
This commit is contained in:
Robin Dunn
2017-12-29 17:18:56 -06:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -70,6 +70,8 @@ Changes in this release include the following:
* Fix OGL's ShapeCanvas to draw properly when the window is scrolled, and
to also adjust the mouse coordinates, etc. (#635)
* Set a default background color for the generic buttons. (#651)
* Fixed HtmlWindow's OnFoo virtual methods so calls to them are propagated to
the Python class. (#642)

View File

@@ -172,7 +172,7 @@ class GenButton(wx.Control):
self.SetLabel(label)
self.InheritAttributes()
self.SetInitialSize(size)
self.InitColours()
self.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE))
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
self.Bind(wx.EVT_LEFT_UP, self.OnLeftUp)