mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
Merge pull request #658 from RobinD42/fix-issue651
Set a default background colour for the generic buttons
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user