/[ascend]/branches/adrian/pygtk/canvas/obrowser.py
ViewVC logotype

Diff of /branches/adrian/pygtk/canvas/obrowser.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2920 by adrian, Sun Apr 12 15:08:38 2015 UTC revision 2921 by adrian, Fri May 8 11:23:20 2015 UTC
# Line 30  class Browser: Line 30  class Browser:
30                  _path = self.treestore.get_path( _piter )                  _path = self.treestore.get_path( _piter )
31                  self.otank[_path.to_string()] = (_name, v)                  self.otank[_path.to_string()] = (_name, v)
32              return              return
33          elif hasattr(value,'__getitem__') and hasattr(value,'__len__'):          elif hasattr(value,'__getitem__') and hasattr(value,'__len__') and len(value) > 1:
34              keys = range(len(value))              keys = range(len(value))
35          elif hasattr(value,"__iter__"):          elif hasattr(value,"__iter__"):
36              # handle 'set' objects...              # handle 'set' objects...

Legend:
Removed from v.2920  
changed lines
  Added in v.2921

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22