def __init__(self, mainWindow): QListWidget.__init__(self) self.spots = [] self.setFixedWidth(300) self.mainWindow = mainWindow self.count = 0 QObject.connect(self, SIGNAL("itemClicked(QListWidgetItem *)"), self.test)
def __init__(self, delegate, document, subject, powermode=False): self.templateManager = TrackTemplateManager(document, subject) self.delegate = delegate self.powermode = powermode Observation.__init__(self, subject) QListWidget.__init__(self) self.setStyleSheet(Theme.browser.style) self.templateEditor = TrackEditor(self.subject, self.powermode, True) self.templateEditor.onTemplateUpdate = self.onTemplateUpdate self.setFrameStyle(QFrame.NoFrame | QFrame.Plain) self.setHorizontalScrollBar(ScrollBar()) self.setVerticalScrollBar(ScrollBar()) self._initActions() [self.addTemplate(t) for t in self.templateManager.templates] self.add_responder(events.track.TrackTemplateSaved, self.trackTemplateSavedResponder) self.itemSelectionChanged.connect(self.onSelectionChanged) self.currentItemChanged.connect(self.onCurrentItemChanged) self.itemDoubleClicked.connect(self.onItemDoubleClicked)
def __init__(self, project_manager, req_project_status): QListWidget.__init__(self) self.project_manager = project_manager self.setIconSize(QSize(40, 40)) #self.setDragDropMode(QAbstractItemView.DragDrop) self.setAcceptDrops(False) self.itemClicked.connect(self.itemCliked) self.fill_list(req_project_status) self.selected_project = None
def __init__(self, parent, name): QListWidget.__init__(self, parent) self.page = 1 self.pages = 1 self.name = name self.verticalScrollBar().actionTriggered.connect(self.OnActionTriggered) self.isLoadingPage = False self.LoadCallBack = None self.parentId = -1
def __init__(self, parent): QListWidget.__init__(self, parent) self.setViewMode(self.ListMode) self.setFlow(self.LeftToRight) self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff) self.setHorizontalScrollMode(self.ScrollPerItem) QScroller.grabGesture(self, QScroller.LeftMouseButtonGesture) self.setMaximumHeight(30) self.setFocusPolicy(Qt.NoFocus)
def __init__(self, scene, parent=None): View.__init__(self, scene) QListWidget.__init__(self, parent) self.scene.registerView(self, [ UpdateType.OBJECT_CREATE, UpdateType.OBJECT_DELETE, UpdateType.OBJECT_NAME_CHANGE, UpdateType.MATERIAL_SELECTION ]) self.setSelectionMode(QAbstractItemView.ExtendedSelection) self.itemSelectionChanged.connect(self.selectionSlot) self.itemChanged.connect(self.itemEditSlot) self.notify(UpdateType.OBJECT_CREATE)
def __init__(self): QListWidget.__init__(self)
def __init__(self, algManager, parent=None): QListWidget.__init__(self, parent) self.algManager = algManager self._createPopupMenu()