Ejemplo n.º 1
0
 def __init__(self, name=None, size=-1, overlay=None, window_id=-1):
     """
     :type overlay: InfoOverlay
     """
     AbstractTorrentTransferProgress.__init__(self, name, size)
     self.overlay = overlay or InfoOverlay(window_id, Align.CENTER, 0.8, 0.3)
     self.heading = self.overlay.addLabel(Align.CENTER_X, offsetY=0.05, font="font16")
     self.title = self.overlay.addLabel(Align.CENTER_X, offsetY=0.3, font="font30_title", label=name)
     self.label = self.overlay.addLabel(Align.BOTTOM | Align.CENTER_X, height=0.4)
Ejemplo n.º 2
0
 def __init__(self, name=None, size=-1, heading=None):
     AbstractTorrentTransferProgress.__init__(self, name, size)
     heading = heading or lang(33010)
     self.handler = XbmcProgress(heading)