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:
Robin Dunn
2004-05-14 21:22:39 +00:00
parent 767ddddea5
commit 969d9b6fa9
7 changed files with 199 additions and 86 deletions

View File

@@ -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...")