Changeset 3820
- Timestamp:
- 12/18/2007 10:15:44 AM (1 year ago)
- Files:
-
- trunk/demo/samples/games/bubblet/BubblePanel.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/demo/samples/games/bubblet/BubblePanel.py
r3816 r3820 4 4 from dabo.dLocalize import _ 5 5 from dabo.ui import makeProxyProperty 6 import random 6 7 7 8 … … 13 14 self._selected = False 14 15 self._colors = ["blue", "green", "red", "yellow", "purple"] 15 self._color = dabo.dColors.randomColor()16 self._color = random.choice(self._colors) 16 17 # Used to detect size changes 17 18 self._sizeCache = (0, 0) … … 37 38 38 39 def setRandomColor(self, repaint=False): 39 self.Color = dabo.dColors.randomColor()40 self.Color = random.choice(self._colors) 40 41 if repaint: 41 42 self.Popped = False
