-# 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
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