]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/test_macbrush.py
   4 class TestPanel(wx
.Panel
): 
   5     def __init__(self
, parent
): 
   6         wx
.Panel
.__init
__(self
, parent
) 
   7         self
.Bind(wx
.EVT_PAINT
, self
.OnPaint
) 
   9     def OnPaint(self
, evt
): 
  11         br 
= wx
.Brush("light blue") 
  13         dc
.DrawRectangle(10,10, 50,50) 
  15         br 
= wx
.Brush(self
.GetBackgroundColour()) 
  18         dc
.DrawRectangle(80,10, 50,50)