Esempio n. 1
0
 def __init__( self, condition = lambda component: True ):
     super( ClipBoardBrowser, self ).__init__()
     tree = TreeView()
     tree.setModel( ClipBoardModel() )
     layout = QtGui.QVBoxLayout( self )
     layout.addWidget( TreeWidget( tree ) )
     tree.doubleClicked.connect( lambda index: self.componentSelected( tree.model().itemFromIndex( index ).component ) )
     self.condition = condition