Esempio n. 1
0
    def __init__(self, parent):
        '''
        Constructor
        '''
        QtGui.QTableView.__init__(self, parent)
        self.table = None
        self.dynfilter = None
        self.highlight = None
        
        self.dirty = True

        self.setSelectionBehavior(self.SelectRows)
        self.setSelectionMode(self.MultiSelection)

        hub.instance().subscribe('r:', self.on_render)
Esempio n. 2
0
    def __init__(self, table=None, dfilter=None, dselect=None):
        self.table = table
        self._dfilter = dfilter
        self._dselect = dselect
        self.plots = OrderedDict()
        
        self.dirty = True

        self.scroll = QtGui.QScrollArea()
        
        self.viz_area = QtGui.QWidget(self.scroll)
        self.v_layout = QtGui.QVBoxLayout(self.viz_area)
        #self.v_layout.setSizeConstraint(self.v_layout.SetNoConstraint)
        self.scroll.setBackgroundRole(Qt.QPalette.Dark)
        self.scroll.setWidget(self.viz_area)
        self.scroll.setWidgetResizable(True)
        self.scroll.setVerticalScrollBarPolicy(2)
    
        hub.instance().subscribe('r:', self.on_render)