Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/plotting/LegendSelector.py   pymca(Download)
    def setLegendList(self, legendList, row=None):
        if row is None:
            row = 0
        model = self.model()
    def clear(self):
        model = self.model()
        if DEBUG == 1:
            print('LegendListView.clear() finished')
    def setContextMenu(self, contextMenu=None):#, actionList):
        delegate = self.itemDelegate()
        if isinstance(delegate, LegendListItemWidget) and self.model():
            if contextMenu is None:
                delegate.contextMenu = LegendListContextMenu(self.model())
    def __getitem__(self, idx):
        model = self.model()
            item = model[idx]
        except ValueError: