Pyflakes spoted undefined name, 80 chars

This commit is contained in:
Jean-Marie Traissard 2006-12-17 22:56:16 +00:00
parent 724f702320
commit 235950e2af
2 changed files with 2 additions and 3 deletions

View File

@ -70,7 +70,7 @@ class DataFormWidget(gtk.Alignment, object):
self.instructions_label.set_no_show_all(True)
self.instructions_label.hide()
else:
self.instructions_label.set_text(instructions)
self.instructions_label.set_text(dataform.instructions)
def get_data_form(self):
""" Data form displayed in the widget or None if no form. """

View File

@ -71,8 +71,7 @@ def tree_cell_data_func(column, renderer, model, iter, tv=None):
renderer.set_property('cell-background', None)
if isinstance(renderer, gtk.CellRendererText):
# foreground property is only with CellRendererText
color = gajim.config.get_per('themes', theme,
'contacttextcolor')
color = gajim.config.get_per('themes', theme, 'contacttextcolor')
if color:
renderer.set_property('foreground', color)
else: