Changeset 3820

Show
Ignore:
Timestamp:
12/18/2007 10:15:44 AM (1 year ago)
Author:
ed
Message:

Changed the colors back to fixed colors from the list.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/demo/samples/games/bubblet/BubblePanel.py

    r3816 r3820  
    44from dabo.dLocalize import _ 
    55from dabo.ui import makeProxyProperty 
     6import random 
    67 
    78 
     
    1314        self._selected = False 
    1415        self._colors = ["blue", "green", "red", "yellow", "purple"] 
    15         self._color = dabo.dColors.randomColor(
     16        self._color = random.choice(self._colors
    1617        # Used to detect size changes 
    1718        self._sizeCache = (0, 0) 
     
    3738     
    3839    def setRandomColor(self, repaint=False): 
    39         self.Color = dabo.dColors.randomColor(
     40        self.Color = random.choice(self._colors
    4041        if repaint: 
    4142            self.Popped = False