border colors on canvas
svn: r375
This commit is contained in:
parent
8d7741a3d1
commit
d1e1b2527f
@ -2468,7 +2468,7 @@ def add_box(root,x,y,bwidth,bheight,person,style):
|
|||||||
y1=0,
|
y1=0,
|
||||||
x2=bwidth,
|
x2=bwidth,
|
||||||
y2=bheight,
|
y2=bheight,
|
||||||
outline_color_gdk=style.fg[STATE_NORMAL],
|
outline_color_gdk=style.bg[STATE_NORMAL],
|
||||||
fill_color_gdk=style.white)
|
fill_color_gdk=style.white)
|
||||||
canvas_items.append(item)
|
canvas_items.append(item)
|
||||||
item = group.add("text",
|
item = group.add("text",
|
||||||
@ -2496,8 +2496,7 @@ def box_event(obj,event):
|
|||||||
obj.raise_to_top()
|
obj.raise_to_top()
|
||||||
box = obj.children()[1]
|
box = obj.children()[1]
|
||||||
x,y,w,h = box.get_bounds()
|
x,y,w,h = box.get_bounds()
|
||||||
box.set(x1=x,y1=y,x2=w,y2=h*3,
|
box.set(x1=x,y1=y,x2=w,y2=h*3)
|
||||||
outline_color_gdk=canvas['style'].black)
|
|
||||||
box2 = obj.children()[0]
|
box2 = obj.children()[0]
|
||||||
x,y,w,h1 = box2.get_bounds()
|
x,y,w,h1 = box2.get_bounds()
|
||||||
box2.set(x1=x,y1=y,x2=w,y2=(3*h)+PAD)
|
box2.set(x1=x,y1=y,x2=w,y2=(3*h)+PAD)
|
||||||
@ -2520,8 +2519,7 @@ def box_event(obj,event):
|
|||||||
canvas = gtop.get_widget("canvas1")
|
canvas = gtop.get_widget("canvas1")
|
||||||
box = obj.children()[1]
|
box = obj.children()[1]
|
||||||
x,y,w,h = box.get_bounds()
|
x,y,w,h = box.get_bounds()
|
||||||
box.set(x1=x,y1=y,x2=w,y2=h/3,
|
box.set(x1=x,y1=y,x2=w,y2=h/3)
|
||||||
outline_color_gdk=canvas['style'].fg[STATE_NORMAL])
|
|
||||||
box2 = obj.children()[0]
|
box2 = obj.children()[0]
|
||||||
x,y,w,h1 = box2.get_bounds()
|
x,y,w,h1 = box2.get_bounds()
|
||||||
box2.set(x1=x,y1=y,x2=w,y2=(h/3)+PAD)
|
box2.set(x1=x,y1=y,x2=w,y2=(h/3)+PAD)
|
||||||
|
Loading…
Reference in New Issue
Block a user