+ self.onShown.append(self.go)
+
+ self.lengthTimer = eTimer()
+ self.lengthTimer.timeout.get().append(self.updateLengthData)
+ self.inited = False
+
+ def showEventInformation(self):
+ from Screens.EventView import EventViewSimple
+ from ServiceReference import ServiceReference
+ evt = self["list"].getCurrentEvent()
+ if evt:
+ self.session.open(EventViewSimple, evt, ServiceReference(self.getCurrent()))
+
+ def go(self):
+ if not self.inited:
+ # ouch. this should redraw our "Please wait..."-text.
+ # this is of course not the right way to do this.
+ self.delayTimer.start(10, 1)
+ self.inited=True
+
+ def updateHDDData(self):
+ self["list"].reload(eServiceReference("2:0:1:0:0:0:0:0:0:0:" + resolveFilename(SCOPE_HDD)))
+ if (self.selectedmovie is not None):
+ self.moveTo()
+ self["waitingtext"].instance.hide()
+
+ self["freeDiskSpace"].update()
+
+ self.lengthTimer.start(10, 1)
+ self.lengthPosition = 0
+ self.lengthLength = len(self["list"])
+
+ def updateLengthData(self):
+ self.list.updateLengthOfIndex(self.lengthPosition)
+ self.lengthPosition += 1
+ if self.lengthPosition < self.lengthLength:
+ self.lengthTimer.start(10, 1)