handle int HScale values and remove a debugging print
This commit is contained in:
parent
5ffe50012b
commit
8e96d0eaa4
|
@ -227,6 +227,9 @@ class ProfileEditor:
|
||||||
value = widget.get_font_name()
|
value = widget.get_font_name()
|
||||||
elif isinstance (widget, gtk.HScale):
|
elif isinstance (widget, gtk.HScale):
|
||||||
value = widget.get_value()
|
value = widget.get_value()
|
||||||
|
digits = widget.get_digits()
|
||||||
|
if digits == 0:
|
||||||
|
value = int(value)
|
||||||
elif isinstance (widget, gtk.ColorButton):
|
elif isinstance (widget, gtk.ColorButton):
|
||||||
value = widget.get_color().to_string()
|
value = widget.get_color().to_string()
|
||||||
elif isinstance (widget, gtk.FileChooserButton):
|
elif isinstance (widget, gtk.FileChooserButton):
|
||||||
|
@ -236,7 +239,6 @@ class ProfileEditor:
|
||||||
children = widget.get_children()
|
children = widget.get_children()
|
||||||
children.reverse()
|
children.reverse()
|
||||||
for child in children:
|
for child in children:
|
||||||
print child
|
|
||||||
if value != '':
|
if value != '':
|
||||||
value = value + ':'
|
value = value + ':'
|
||||||
value = value + child.get_color().to_string()
|
value = value + child.get_color().to_string()
|
||||||
|
|
Loading…
Reference in New Issue