Add a progressbar for timer as an option #33

Closed
opened 2024-05-15 16:40:25 +02:00 by Shikiryu · 0 comments
Owner

From https://pythonforge.com/interfaces-graphiques-tkinter/ :

from tkinter import *
from tkinter.ttk import Progressbar
from tkinter import ttk

window = Tk()
window.title("Apprendre tkinter")
window .geometry( '300x100' )

style = ttk.Style()
style.theme_use('default')
style.configure("black.Horizontal.TProgressbar", background='black')

bar = Progressbar(window, length=200, style='black.Horizontal.TProgressbar')
bar['value'] = 70
bar.grid(column=0, row=0)

window.mainloop()
From https://pythonforge.com/interfaces-graphiques-tkinter/ : ``` from tkinter import * from tkinter.ttk import Progressbar from tkinter import ttk window = Tk() window.title("Apprendre tkinter") window .geometry( '300x100' ) style = ttk.Style() style.theme_use('default') style.configure("black.Horizontal.TProgressbar", background='black') bar = Progressbar(window, length=200, style='black.Horizontal.TProgressbar') bar['value'] = 70 bar.grid(column=0, row=0) window.mainloop() ```
Shikiryu added the
Kind/Enhancement
Priority
Medium
labels 2024-05-15 16:40:25 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Shikiryu/DrawingTraining#33
No description provided.