Commit d32b0639 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Remove () from buttons, resize icons > more space

parent 3c52aa50
......@@ -265,43 +265,43 @@ class Charter(object):
c_box.add(but)
self.button_handlers["Select"] = (but, -1)
but = gtk.Button(label="InputNode (F1)")
but = gtk.Button(label="InputNode F1")
self.add_accelerator(but, "F1")
self.add_image(but, "input_node")
c_box.add(but)
self.button_handlers["InputNode"] = (but, -1)
but = gtk.Button(label="SimpleNode (F2)")
but = gtk.Button(label="SimpleNode F2")
self.add_accelerator(but, "F2")
self.add_image(but, "simple_node")
c_box.add(but)
self.button_handlers["SimpleNode"] = (but, -1)
but = gtk.Button(label="PermNode (F3)")
but = gtk.Button(label="PermNode F3")
self.add_accelerator(but, "F3")
self.add_image(but, "permanent_node")
c_box.add(but)
self.button_handlers["PermNode"] = (but, -1)
but = gtk.Button(label="StartNode (F4)")
but = gtk.Button(label="StartNode F4")
self.add_accelerator(but, "F4")
self.add_image(but, "start_node")
c_box.add(but)
self.button_handlers["StartNode"] = (but, -1)
but = gtk.Button(label="TrapNode (F5)")
but = gtk.Button(label="TrapNode F5")
self.add_accelerator(but, "F5")
self.add_image(but, "trap_node")
c_box.add(but)
self.button_handlers["TrapNode"] = (but, -1)
but = gtk.Button(label="Transition (F6)")
but = gtk.Button(label="Transition F6")
self.add_accelerator(but, "F6")
self.add_image(but, "transition")
c_box.add(but)
self.button_handlers["Transition"] = (but, -1)
but = gtk.Button(label="View constraints (F7)")
but = gtk.Button(label="Constraints F7")
self.add_accelerator(but, "F7")
c_box.add(but)
self.button_handlers["Constraints"] = (but, -1)
......@@ -389,7 +389,10 @@ class Charter(object):
__name__,
'images/' + image_file + '.png',
)
image.set_from_file(template)
pixbuf = gtk.gdk.pixbuf_new_from_file(template)
pixbuf = pixbuf.scale_simple(15, 15, gtk.gdk.INTERP_BILINEAR)
image = gtk.image_new_from_pixbuf(pixbuf)
# image.set_from_file(template)
widget.set_image(image)
def add_accelerator(self, widget, accelerator, signal="activate"):
......
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