コード例 #1
0
ファイル: StatusBar.py プロジェクト: deignacio/postr
 def set_upload(self, to_upload):
     """Set the amount of data to be uploaded, and update the status bar."""
     if to_upload:
         self.to_upload = greek(to_upload)
     else:
         self.to_upload = None
     self.__update()
コード例 #2
0
 def set_upload(self, to_upload):
     """Set the amount of data to be uploaded, and update the status bar."""
     if to_upload:
         self.to_upload = greek(to_upload)
     else:
         self.to_upload = None
     self.__update()
コード例 #3
0
ファイル: StatusBar.py プロジェクト: deignacio/postr
 def got_quota(rsp):
     self.maxfile = int(rsp.find("user/filesize").get("maxmb"))
     if int(rsp.find("user").get("ispro")):
         self.quota = None
     else:
         self.quota = greek(int(rsp.find("user/bandwidth").get("remainingbytes")))
     self.__update()
コード例 #4
0
 def got_quota(rsp):
     self.maxfile = int(rsp.find("user/filesize").get("maxmb"))
     if int(rsp.find("user").get("ispro")):
         self.quota = None
     else:
         self.quota = greek(
             int(rsp.find("user/bandwidth").get("remainingbytes")))
     self.__update()