mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user