In .:
2006-05-12 Alex Roitman <shura@gramps-project.org> * src/UndoHistory.py (gtk_color_to_str): Better color to str. * src/QuestionDialog.py (QuestionDialog2.__init__): Use the underline for labels. * src/plugins/ChangeNames.py: Fix WM. * src/plugins/PatchNames.py: Fix WM. In po: * gramps.pot: Update. svn: r6630
This commit is contained in:
@ -235,10 +235,9 @@ class UndoHistory(ManagedWindow.ManagedWindow):
|
||||
self._update_ui()
|
||||
|
||||
def gtk_color_to_str(color):
|
||||
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)
|
||||
color_str = u"#%02x%02x%02x" % (color.red/256,
|
||||
color.green/256,
|
||||
color.blue/256)
|
||||
return color_str
|
||||
|
||||
def get_colors(obj,state):
|
||||
|
Reference in New Issue
Block a user