From 2f20402a327d639a7ff7307b098b1eed17706dfa Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 06 Jan 2012 02:36:42 +0000 Subject: more consolidation of toolbars for smaller displays --- (limited to 'TurtleArt/tabasics.py') diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py index 4ef6db0..8b949da 100644 --- a/TurtleArt/tabasics.py +++ b/TurtleArt/tabasics.py @@ -67,7 +67,7 @@ from gettext import gettext as _ from tapalette import make_palette, define_logo_function from talogo import primitive_dictionary, logoerror from tautils import convert, chr_to_ord, round_int, strtype -from taconstants import BLACK, WHITE, CONSTANTS +from taconstants import BLACK, WHITE, CONSTANTS, XO30 def _num_type(x): """ Is x a number type? """ @@ -350,9 +350,14 @@ start fill block)')) def _color_palette(self): """ The basic Turtle Art color palette """ - palette = make_palette('colors', - colors=["#00FFFF", "#00A0A0"], - help_string=_('Palette of pen colors')) + if self.tw.hw == XO30: + palette = make_palette('pen', + colors=["#00FFFF", "#00A0A0"], + help_string=_('Palette of pen colors')) + else: + palette = make_palette('colors', + colors=["#00FFFF", "#00A0A0"], + help_string=_('Palette of pen colors')) palette.add_block('setcolor', style='basic-style-1arg', -- cgit v0.9.1