- The keepReference hack is no longer needed for factory functions

- Add some missing DC methods
- minor fix in the GraphicsGradient demo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-06-13 06:18:51 +00:00
parent 4f8e935257
commit c3d5fdef81
2 changed files with 23 additions and 28 deletions

View File

@@ -15,14 +15,14 @@ class GradientPanel(wx.Panel):
"""
def __init__(self, parent):
wx.Panel.__init__(self, parent, -1)
# Create a simple default brush we can use until a gradient
# brush is given to us
self.brush = wx.WHITE_BRUSH
self.SetBackgroundStyle(wx.BG_STYLE_PAINT)
self.Bind(wx.EVT_PAINT, self.OnPaint)
self.SetInitialSize((600,100))
# create a simple default brush we can use until a gradient
# brush is given to us
ctx = g.GraphicsContext.Create()
self.brush = wx.WHITE_BRUSH
def DrawWithBrush(self, brush):
self.brush = brush