]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/DrawXXXList.py
Reworked how stock objects are initialized. They now have an
[wxWidgets.git] / wxPython / demo / DrawXXXList.py
index 1ac1338d1111f7da9216bf59f2e7bd581efb6955..07adb42961c3f17b3b6293ba992e8424ef19a11f 100644 (file)
@@ -141,8 +141,8 @@ def makeRandomColors(num):
     colors = []
 
     for i in range(num):
-        c = whrandom.choice(colours)
-        colors.append(wxNamedColour(c))
+        c = random.choice(colours)
+        colors.append(wx.NamedColour(c))
     return colors