00001 """
00002 Copyright 2008 Free Software Foundation, Inc.
00003 This file is part of GNU Radio
00004
00005 GNU Radio Companion is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU General Public License
00007 as published by the Free Software Foundation; either version 2
00008 of the License, or (at your option) any later version.
00009
00010 GNU Radio Companion is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013 GNU General Public License for more details.
00014
00015 You should have received a copy of the GNU General Public License
00016 along with this program; if not, write to the Free Software
00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
00018 """
00019
00020
00021
00022
00023 import pygtk
00024 pygtk.require('2.0')
00025 import gtk
00026
00027 COLORMAP = gtk.gdk.colormap_get_system()
00028 def get_color(color_code): return COLORMAP.alloc_color(color_code, True, True)
00029
00030 BACKGROUND_COLOR = get_color('#FFF9FF')
00031 FG_COLOR = get_color('black')
00032 BG_COLOR = get_color('#F1ECFF')
00033 DISABLED_BG_COLOR = get_color('#CCCCCC')
00034 DISABLED_FG_COLOR = get_color('#999999')
00035 H_COLOR = get_color('#00FFFF')
00036 TXT_COLOR = get_color('black')
00037 ERROR_COLOR = get_color('red')