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