wxWidgets/wxPython/tests/test_rendererButton.py
Robin Dunn ae0205b955 A couple new simple tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-28 23:25:38 +00:00

24 lines
524 B
Python

import wx
class TestPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.Bind(wx.EVT_PAINT, self.OnPaint)
def OnPaint(self, evt):
dc = wx.PaintDC(self)
r = wx.Rect(10,10, 22,22)
dc.SetClippingRect(r)
rndr = wx.RendererNative.Get()
rndr.DrawComboBoxDropButton(self, dc, r)
r.x = 50
rndr.DrawPushButton(self, dc, r)
app = wx.App(False)
frm = wx.Frame(None)
pnl = TestPanel(frm)
frm.Show()
app.MainLoop()