我想制作一个带有上传量规的上传程序。我有一个回调函数:
def myupdater(self, current, total):
m = (Decimal(current)/Decimal(total))
print "uploaded {0}/{1} so far".format(current, total)
self.gauge_1.SetValue(m)
print(m)
print (self.gauge_1.GetValue)
wx.Yield()
print"----------------------"
它显示(最后仪表只更改为 100%):
完整代码: http: //pastebin.com/uaThd5sD