--- /dev/null
+import sys, os
+import wx
+
+class MyApp(wx.App):
+ def OnInit(self):
+ f = wx.Frame(None, title="Hello World")
+ f.Show()
+ return True
+
+ def MacOpenFile(self, filename):
+ # code to load filename goes here.
+ wx.MessageBox(
+ "You requested to open this file:\n\"%s\"" % filename)
+
+app = MyApp()
+app.MainLoop()
+
--- /dev/null
+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()