]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/DrawXXXList.py
apparently the check for too small rect is needed not only with wxNB_MULTILINE (see...
[wxWidgets.git] / wxPython / demo / DrawXXXList.py
index 1ac1338d1111f7da9216bf59f2e7bd581efb6955..5086b14c01baeb7b3be2472b046307072e5d6281 100644 (file)
@@ -1,13 +1,3 @@
-# 11/5/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-# o Replaced all calls to deprecated whrandom module with up to date random calls.
-#   See Python docs regarding whrandom for details.
-#
-# 11/25/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o New binding
-#
 
 import  random
 import  time
@@ -141,8 +131,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
 
 
@@ -459,5 +449,5 @@ drawing routines.  Currently they are:
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])