Example #1
0
File: fm.py Project: damantou/moon
 def __init__(self, parent=None):
     BaseView.__init__(self, parent)
     self.setWindowTitle('Explorer')
     self.fsTree = QtGui.QTreeView(self)
     self.fsModel = QtGui.QFileSystemModel()
     self.fsModel.setRootPath('c:/tmp')
     self.fsTree.setModel(self.fsModel)
     self.setWidget(self.fsTree)
     self.fsTree.activated.connect(self.onFileActived)
     self.setFeatures(self.features()&~QtGui.QDockWidget.DockWidgetFloatable)
     a = QtGui.QAction("Open", self)
     self.addAction(a)
     a.triggered.connect(self.openSelected)
Example #2
0
 def __init__(self, parent=None):
     BaseView.__init__(self, parent)
     self.setWindowTitle('Logger')
     self.viewer = Qsci.QsciScintilla(self)
     self.setWidget(self.viewer)
     channels['logger']['*'].bind(self.record)