2006-05-11 Alex Roitman <shura@gramps-project.org>
* src/UndoHistory.py (gtk_color_to_str): Correct byte color. svn: r6623
This commit is contained in:
@ -225,9 +225,9 @@ class UndoHistory(ManagedWindow.ManagedWindow):
|
||||
self._update_ui()
|
||||
|
||||
def gtk_color_to_str(color):
|
||||
r = hex(256*color.red/65535).replace('0x','')
|
||||
g = hex(256*color.green/65535).replace('0x','')
|
||||
b = hex(256*color.blue/65535).replace('0x','')
|
||||
r = hex(255*color.red/65535).replace('0x','')
|
||||
g = hex(255*color.green/65535).replace('0x','')
|
||||
b = hex(255*color.blue/65535).replace('0x','')
|
||||
color_str =u'#%s%s%s' % (r,g,b)
|
||||
return color_str
|
||||
|
||||
|
Reference in New Issue
Block a user