Commit 9c55677e authored by Guillaume Seguin's avatar Guillaume Seguin

Fix custom button edit

parent 7301d7e8
......@@ -738,10 +738,10 @@ class PronterWindow(MainWindow, pronsole.pronsole):
bedit = ButtonEdit(self)
if button is not None:
n = button.custombutton
bedit.name.SetValue(button.label)
bedit.command.SetValue(button.command)
if button.background:
colour = button.background
bedit.name.SetValue(button.properties.label)
bedit.command.SetValue(button.properties.command)
if button.properties.background:
colour = button.properties.background
if type(colour) not in (str, unicode):
#print type(colour)
if type(colour) == tuple and tuple(map(type, colour)) == (int, int, int):
......
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