You can do it with label and use spaces of the desired background colour. Here is example:
# Tkinter progress bar experiment
# using label and string of spaces
import Tkinter as tk
root = tk.Tk()
# width 300 and height 100, no offsets
root.geometry("300x100+0+0")
space = " "
s = ""
label = tk.Label(root, text=s, bg='blue')
label.pack(anchor='nw')
for k in range(80):
s += space
# increments every 100 milliseconds
label.after(100,label.config(text=s))
label.update() # needed
root.mainloop()
Last edited by bumsfeld; Mar 3rd, 2008 at 1:18 pm. Reason: bg
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
Offline 1,422 posts
since Jul 2005