From cbcedfac523a0b416f422139a7bb60e16930c634 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Mon, 01 Aug 2011 00:27:49 +0000 Subject: Move HAVE_TOOLABAR definition to Config.py --- (limited to 'common/Config.py') diff --git a/common/Config.py b/common/Config.py index ed6777f..7f4d736 100644 --- a/common/Config.py +++ b/common/Config.py @@ -56,6 +56,12 @@ PLUGIN_RATE = 16000 PLUGIN_PERIOD = 256 # 512 PLUGIN_NPERIODS = 2 +try: + from sugar.graphics.toolbarbox import ToolbarBox, ToolbarButton + HAVE_TOOLBOX = True +except ImportError: + HAVE_TOOLBOX = False + ############## ## SOUNDS ############## -- cgit v0.9.1