]> git.saurik.com Git - wxWidgets.git/blame - wxPython/tests/test_macbrush.py
Renamed wxDCBase::LogicalTo ... to wxDC::.. here, too.
[wxWidgets.git] / wxPython / tests / test_macbrush.py
CommitLineData
4f13d382
RD
1import wx
2
3
4class TestPanel(wx.Panel):
5 def __init__(self, parent):
6 wx.Panel.__init__(self, parent)
7 self.Bind(wx.EVT_PAINT, self.OnPaint)
8
9 def OnPaint(self, evt):
10 dc = wx.PaintDC(self)
11 br = wx.Brush("light blue")
12 dc.SetBrush(br)
13 dc.DrawRectangle(10,10, 50,50)
14
15 br = wx.Brush(self.GetBackgroundColour())
16 br.MacSetTheme(1)
17 dc.SetBrush(br)
18 dc.DrawRectangle(80,10, 50,50)
19
20
21app = wx.App(False)
22frm = wx.Frame(None)
23pnl = TestPanel(frm)
24frm.Show()
25app.MainLoop()