Commit b73fd4d4 authored by VIGNET Pierre's avatar VIGNET Pierre

Suppress old BG colors...

parent 0d9a441e
......@@ -55,7 +55,6 @@ import pkg_resources
LOGGER = cm.logger()
BG_COLOR = "#FFFF99"
class ChartChecker(object):
"""
......@@ -75,9 +74,6 @@ class ChartChecker(object):
if (self.__main_window):
self.__main_window.connect("destroy", self.__on_destroy)
self.__main_window.set_position(gtk.WIN_POS_CENTER)
color = gtk.gdk.color_parse(BG_COLOR)
self.__main_window.modify_bg(gtk.STATE_NORMAL, color)
self.__main_window.resize(600, 300)
# register as auxiliary window
......@@ -435,8 +431,6 @@ class SolutionWindow(object):
self.window.set_resizable(True)
height = gtk.gdk.screen_height()
height = int(height * 0.30)
color = gtk.gdk.color_parse(BG_COLOR)
self.window.modify_bg(gtk.STATE_NORMAL, color)
self.window.set_size_request(700, height)
......
......@@ -57,8 +57,6 @@ from cadbiom_gui.gt_gui.utils.fileHandling import FileChooser
import pkg_resources
BG_COLOR = "#FFFF99"
class ChartSimulControler(object):
"""
Control different parameters of a simulation and display panel
......@@ -108,8 +106,6 @@ class ChartSimulControler(object):
self.main_window.set_title("Simulation: "+self.model.name)
if (self.main_window):
self.main_window.connect("destroy", self.on_destroy)
color = gtk.gdk.color_parse(BG_COLOR)
self.main_window.modify_bg(gtk.STATE_NORMAL, color)
self.main_window.set_position(gtk.WIN_POS_CENTER)
self.main_window.set_keep_above(True)
......@@ -477,8 +473,6 @@ class SelectPlaceWindow(object):
self.window = self.wtree.get_widget("window1")
self.window.set_title("Selected window")
self.window.set_size_request(250, 400)
color = gtk.gdk.color_parse(BG_COLOR)
self.window.modify_bg(gtk.STATE_NORMAL, color)
self.window.set_position(gtk.WIN_POS_NONE)
self.window.set_keep_above(True)
......
......@@ -49,7 +49,6 @@ import pkg_resources
import sys
sys.setrecursionlimit(10000)
BG_COLOR = "#FFFF99"
class ChartStatControler(object):
"""
......@@ -73,8 +72,6 @@ class ChartStatControler(object):
self.main_window.connect("destroy", self.on_destroy)
self.main_window.set_position(gtk.WIN_POS_CENTER)
#self.main_window.set_keep_above(True)
color = gtk.gdk.color_parse(BG_COLOR)
self.main_window.modify_bg(gtk.STATE_NORMAL, color)
self.main_window.resize(150, 300)
# completion button
......@@ -210,8 +207,6 @@ class DependencyGraphWindow(object):
self.main_window.set_resizable(True)
screen_h = gtk.gdk.screen_height()
screen_h = int(screen_h * 0.20)
color = gtk.gdk.color_parse(BG_COLOR)
self.main_window.modify_bg(gtk.STATE_NORMAL, color)
self.main_window.set_size_request(300, screen_h)
if (self.main_window):
......@@ -384,8 +379,6 @@ class SCCWindow(object):
+ self.emvc.model.name)
height = gtk.gdk.screen_height()
height = int(height * 0.30)
color = gtk.gdk.color_parse(BG_COLOR)
self.window.modify_bg(gtk.STATE_NORMAL, color)
self.window.set_size_request(700, height)
......
......@@ -86,7 +86,7 @@ class Charter(object):
"""
charter main class
"""
BG_COLOR = '#edf5ff'
def __init__(self, cad):
self.ident = "charter"
self.cad_manager = cad
......@@ -109,15 +109,13 @@ class Charter(object):
self.wtree = gtk.glade.XML(template)
# Get the Main Window, and connect the "destroy" event
self.main_window = self.wtree.get_widget("TopModel")
if (self.main_window):
if self.main_window:
self.main_window.connect("delete_event", self.on_destroy)
h_scr = screen_height()
w_scr = screen_width()
self.h_scr = int(h_scr)
self.w_scr = int(w_scr)
self.main_window.resize(int(w_scr * 0.9), int(h_scr * 0.9))
color = color_parse(Charter.BG_COLOR)
self.main_window.modify_bg(gtk.STATE_NORMAL, color)
self.constraint_window = None
# Accelerators
......@@ -127,7 +125,6 @@ class Charter(object):
# menu bar
menu_bar = self.wtree.get_widget("menubar1")
menu_bar.set_size_request(0, 25)
menu_bar.modify_bg(gtk.STATE_NORMAL, color)
menu_item = self.wtree.get_widget("doc_menu")
menu_item.connect("activate", self.show_doc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment