Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from rapidTk import *
- class GUI:
- def __init__(self):
- self.root = rapidTk()
- self.root.geometry("400x120")
- self.root.resizable(0,0)
- def main(self):
- pp=PackProcess()
- f1 = pp.add(cFrame(self.root), side=TOP, pady=5)
- f2 = pp.add(cFrame(self.root), side=TOP)
- f3 = pp.add(cFrame(self.root), side=TOP)
- pp.add(cLabel(f1, text="mode: indeterminate"), side=TOP)
- lb1 = pp.add(LoadingBar(f1, mode="indeterminate", borderwidth=2, relief="raised", width=375, height=15, background="white", increment=2, delay=0.025), side=TOP)
- pp.add(cLabel(f2, text="mode: determinate"), side=TOP)
- lb2 = pp.add(LoadingBar(f2, mode="determinate", borderwidth=2, relief="raised", width=375, height=15, background="white", increment=30, delay=0.1), side=TOP)
- pp.add(cLabel(f3, text="mode: flow"), side=TOP)
- lb3 = pp.add(LoadingBar(f3, mode="flow", borderwidth=2, relief="raised", width=375, height=15, background="white", increment=2, delay=0.01), side=TOP)
- lb1.bar_config(background="#3399ff", width=20)
- lb2.bar_config(background="#3399ff")
- lb3.bar_config(background="#3399ff")
- lb1.start()
- lb2.set(50)
- lb3.set(75)
- pp.pack()
- self.root.mainloop()
- if __name__ == "__main__":
- app=GUI()
- app.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement