]> git.saurik.com Git - wxWidgets.git/blame - wxPython/tests/test_rendererButton.py
Updated build files.
[wxWidgets.git] / wxPython / tests / test_rendererButton.py
CommitLineData
ae0205b9
RD
1import wx
2
3class TestPanel(wx.Panel):
4 def __init__(self, parent):
5 wx.Panel.__init__(self, parent)
6 self.Bind(wx.EVT_PAINT, self.OnPaint)
7
8 def OnPaint(self, evt):
9 dc = wx.PaintDC(self)
10 r = wx.Rect(10,10, 22,22)
11 dc.SetClippingRect(r)
12 rndr = wx.RendererNative.Get()
13 rndr.DrawComboBoxDropButton(self, dc, r)
14
15 r.x = 50
16 rndr.DrawPushButton(self, dc, r)
17
18
19app = wx.App(False)
20frm = wx.Frame(None)
21pnl = TestPanel(frm)
22frm.Show()
23app.MainLoop()