Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-01-29 22:14:15 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-01-29 22:14:15 (GMT)
commit259f968184d27a9f5fd3007f99a5d0ef525072aa (patch)
tree70d752835cc70dfbc0b5e71a936276056c223d8e /tawindow.py
parent4f49bb9b466afa833be37bceecadb8f7b843d62e (diff)
palette hide button
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py
index 7ab79e0..8c15123 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -838,7 +838,9 @@ class TurtleArtWindow():
elif spr.type == 'selector':
self._select_category(spr)
elif spr.type == 'category':
- pass
+ r,g,b,a = spr.get_pixel((x, y))
+ if (r == 255 and g == 0) or g == 255:
+ self._hide_palette()
"""
Block pressed