我正在尝试创建一个状态/进度条,显示还有多少网页需要清除。我不知道如何在模块之间传递页面。我想我打电话给tkinter窗口类是个错误。如果有任何关于如何调用此模块并传递pg/pages变量的帮助,我们将不胜感激。在
模块获取页数:
from ProgressBar import StatusWindow
pages = 25
class crawler:
def get_pagecount():
for eachPage in range(1,pages):
pg = eachPage
Complete = '{:.0%}'.format(pg/pages)
print(Complete)
StatusWindow(pages,pg) """<== How do I call the progress bar and pass these variables?"""
if __name__=='__main__':
crawler.get_pagecount()
进度条:
^{pr2}$
目前没有回答
相关问题 更多 >
编程相关推荐