Colors.py

Go to the documentation of this file.
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 ##@package grc.gui.elements.Colors
00020 #Global Colors for the gui
00021 #@author Josh Blum
00022 
00023 import pygtk
00024 pygtk.require('2.0')
00025 import gtk
00026 
00027 COLORMAP = gtk.gdk.colormap_get_system() #create all of the colors
00028 def get_color(color_code): return COLORMAP.alloc_color(color_code, True, True)
00029 
00030 BACKGROUND_COLOR = get_color('#FFF9FF') #main window background
00031 FG_COLOR = get_color('black') #normal border color
00032 BG_COLOR = get_color('#F1ECFF') #default background
00033 DISABLED_BG_COLOR = get_color('#CCCCCC') #disabled background
00034 DISABLED_FG_COLOR = get_color('#999999') #disabled foreground
00035 H_COLOR = get_color('#00FFFF') #Highlight border color
00036 TXT_COLOR = get_color('black') #text color
00037 ERROR_COLOR = get_color('red') #error color

Generated on Sat Aug 23 02:00:11 2008 for GNU Radio Companion by  doxygen 1.5.4