示例#1
0
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)
示例#2
0
 def load_widgets(self):
     self.myfiles = FileTreeView(self.widget('manual'), selected=self.signal)
     self.myfiles.change_directory('/var/log/')