X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..e6477984b100047f1d4f4f6049d51d4829712fea:/wxPython/demo/DrawXXXList.py diff --git a/wxPython/demo/DrawXXXList.py b/wxPython/demo/DrawXXXList.py index 1ac1338d11..a7537af348 100644 --- a/wxPython/demo/DrawXXXList.py +++ b/wxPython/demo/DrawXXXList.py @@ -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