Fixed some excessively long lines.
This commit is contained in:
parent
2cc4e86b0a
commit
c5c4f13a19
|
@ -68,9 +68,9 @@ class IdListController:
|
|||
self._dimension = dimname
|
||||
|
||||
def set_annotation(self, annotation):
|
||||
"""Set the displayed annotation to annotation.
|
||||
If annotation is None, the annotation column is hidden. Otherwise the annotation
|
||||
column is shown and filled with values from the given annotation field."""
|
||||
"""Set the displayed annotation to annotation. If annotation is None,
|
||||
the annotation column is hidden. Otherwise the annotation column is
|
||||
shown and filled with values from the given annotation field."""
|
||||
|
||||
if annotation == self._annotation:
|
||||
return
|
||||
|
@ -113,7 +113,9 @@ class IdListController:
|
|||
else:
|
||||
annotations_menu = gtk.Menu()
|
||||
self._menu_ann.set_sensitive(True)
|
||||
ann_names = annotations.get_dim_handler(self._dimension).get_annotation_names()
|
||||
dh = annotations.get_dim_handler(self._dimension)
|
||||
ann_names = dh.get_annotation_names()
|
||||
|
||||
for ann in ann_names:
|
||||
item = gtk.MenuItem(ann)
|
||||
item.connect('activate', self._on_annotation_activated, ann)
|
||||
|
|
Reference in New Issue