Added a generic StaticBitmap class in wx.lib.statbmp for the same
reasons that stattext was created, so it could be mouse sensitive on all platforms like normal windows. Also updated stattext.py and buttons.py to handle attribute (font & colour) defaults and inheritance the new way. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10,6 +10,7 @@ class TestPanel(wx.Panel):
|
||||
def __init__(self, parent, log):
|
||||
wx.Panel.__init__(self, parent, -1)
|
||||
self.log = log
|
||||
##self.SetBackgroundColour("sky blue")
|
||||
|
||||
sizer = wx.FlexGridSizer(1, 3, 20, 20)
|
||||
|
||||
@@ -43,6 +44,7 @@ class TestPanel(wx.Panel):
|
||||
b.SetFont(wx.Font(20, wx.SWISS, wx.NORMAL, wx.BOLD, False))
|
||||
b.SetBezelWidth(5)
|
||||
###b.SetBestSize()
|
||||
b.SetSizeHints(wx.DefaultSize)
|
||||
b.SetBackgroundColour("Navy")
|
||||
b.SetForegroundColour(wx.WHITE)
|
||||
b.SetToolTipString("This is a BIG button...")
|
||||
|
Reference in New Issue
Block a user