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

Method updateCount

module/gui/Queue.py:102–113  ·  view source on GitHub ↗

calculate package- and filecount for statusbar, ugly?: Overview connects to this signal for updating

(self)

Source from the content-addressed store, hash-verified

100 self.updateCount()
101
102 def updateCount(self):
103 """
104 calculate package- and filecount for statusbar,
105 ugly?: Overview connects to this signal for updating
106 """
107 packageCount = len(self._data)
108 fileCount = 0
109 for p in self._data:
110 fileCount += len(p.children)
111 self.mutex.unlock()
112 self.emit(SIGNAL("updateCount"), packageCount, fileCount)
113 self.mutex.lock()
114
115 def update(self):
116 """

Callers 5

fullReloadMethod · 0.95
insertEventMethod · 0.95
removeEventMethod · 0.95
updateEventMethod · 0.95
updateMethod · 0.95

Calls 2

unlockMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected