MCPcopy Index your code
hub / github.com/pyload/pyload / initQueue

Method initQueue

pyLoadGui.py:264–278  ·  view source on GitHub ↗

init the queue view * columns * progressbar

(self)

Source from the content-addressed store, hash-verified

262 self.packageCollector = view.model()
263
264 def initQueue(self):
265 """
266 init the queue view
267 * columns
268 * progressbar
269 """
270 view = self.mainWindow.tabs["queue"]["view"]
271 view.setSelectionBehavior(QAbstractItemView.SelectRows)
272 view.setSelectionMode(QAbstractItemView.ExtendedSelection)
273 self.queue = view.model()
274 self.connect(self.queue, SIGNAL("updateCount"), self.slotUpdateCount)
275 overview = self.mainWindow.tabs["overview"]["view"].model()
276 overview.queue = self.queue
277 self.connect(self.queue, SIGNAL("updateCount"), overview.queueChanged)
278 self.queue.start()
279
280 def slotUpdateCount(self, pc, fc):
281 self.mainWindow.packageCount.setText("%i" % pc)

Callers 1

startMainMethod · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected