From: Tero K. <te...@us...> - 2005-08-15 17:00:43
|
Update of /cvsroot/openexvis/openexvis In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8446 Modified Files: ChangeLog openexvis.py Log Message: Visualization objects have a black border to make things look clearer. Index: openexvis.py =================================================================== RCS file: /cvsroot/openexvis/openexvis/openexvis.py,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- openexvis.py 15 Aug 2005 14:33:28 -0000 1.10 +++ openexvis.py 15 Aug 2005 17:00:32 -0000 1.11 @@ -18,7 +18,7 @@ def __init__(self): visualizer.OevVisualizer.__init__(self) - self.version = "0.2.0" + self.version = "0.3.0-pre" # Build the UI self.build_gui() @@ -58,7 +58,7 @@ # Create the colors for different elements. They must be allocated # colors. self.colormap = self.vDraw.get_colormap() - self.color_white = self.colormap.alloc_color('#FFFFFF') + self.object_bg_color = self.colormap.alloc_color('#000000') self.static_const_color = self.colormap.alloc_color('#DDAA88') self.const_color = self.colormap.alloc_color('#FFCCAA') self.var_color = self.colormap.alloc_color('#CCFFAA') @@ -84,7 +84,7 @@ def set_positions(self): """Set some important positions in the visualization area.""" self.vis_width, self.vis_height = self.vDraw.get_size() - # We divide the visualization area to a 20x20 grid. + # We divide the visualization area to a grid. self.gridw = self.vis_width/20 self.gridh = self.vis_height/20 while self.gridw > 50: @@ -389,7 +389,7 @@ """ gc = self.vDraw.new_gc() pm = gtk.gdk.Pixmap(self.vDraw, w, h) - gc.set_foreground(self.color_white) + gc.set_foreground(self.object_bg_color) pm.draw_rectangle(gc, True, 0, 0, w, h) gc.set_foreground(fgc) pm.draw_rectangle(gc, True, 1, 1, w - 2, h - 2) Index: ChangeLog =================================================================== RCS file: /cvsroot/openexvis/openexvis/ChangeLog,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- ChangeLog 15 Aug 2005 14:33:28 -0000 1.7 +++ ChangeLog 15 Aug 2005 17:00:32 -0000 1.8 @@ -3,6 +3,8 @@ CVS + * Visualization objects have a black border + 0.2.0 * Lines can now be marked to be skipped while visualizing |