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
|
||||
|
@ -91,8 +91,8 @@ class IdListController:
|
|||
idlist = list(selection[self._dimension])
|
||||
if self._annotation[self._dimension] != None:
|
||||
annlist = annotations.get_dim_annotations(self._dimension,
|
||||
self._annotation[self._dimension],
|
||||
idlist)
|
||||
self._annotation[self._dimension],
|
||||
idlist)
|
||||
for id, ann in zip(idlist, annlist):
|
||||
self._idstore.append((id, ann))
|
||||
else:
|
||||
|
@ -103,7 +103,7 @@ class IdListController:
|
|||
## Private interface
|
||||
##
|
||||
def _update_annotations_menu(self):
|
||||
"""Updates the annotations menu with the available annotations for the
|
||||
"""Updates the annotations menu with the available annotations for the
|
||||
current dim."""
|
||||
|
||||
dim_h = annotations.get_dim_handler(self._dimension)
|
||||
|
@ -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