class ListFilesWindow(Window): """Show files in our list view, we can reuse the listapp glade file too.""" name = 'listapp' def load_widgets(self): self.myfiles = FileTreeView(self.widget('manual'), selected=self.signal) self.myfiles.change_directory('/var/log/') def signal(self, item): print "Item selected! %s" % unicode(item)
def load_widgets(self): self.myfiles = FileTreeView(self.widget('manual'), selected=self.signal) self.myfiles.change_directory('/var/log/')