]> git.saurik.com Git - wxWidgets.git/commitdiff
Show some GradientFill usage
authorRobin Dunn <robin@alldunn.com>
Mon, 13 Feb 2006 19:18:29 +0000 (19:18 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 13 Feb 2006 19:18:29 +0000 (19:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/ScrolledWindow.py

index ac3654255175c831ff1f24bcc703b1566a2ae634..35087538d88afcf835ccb0c3a727b76a8e2d0a50 100644 (file)
@@ -137,6 +137,10 @@ class MyCanvas(wx.ScrolledWindow):
         dc.SetPen(old_pen)
         dc.DrawRectangle(490,90, 20,20)
 
+        dc.GradientFillLinear((20, 260, 50, 50),
+                              "red", "blue")
+        dc.GradientFillConcentric((20, 325, 50, 50),
+                                  "red", "blue", (25,25))
         self.DrawSavedLines(dc)
         dc.EndDrawing()