TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
10.77k stars 1.03k forks source link

CTkProgressBar change length #2464

Open aoi2010 opened 3 weeks ago

aoi2010 commented 3 weeks ago
import customtkinter

app = customtkinter.CTk()
progressbar = customtkinter.CTkProgressBar(app, orientation="horizontal",length=150)
progressbar.pack(padx=10, pady=10)

This shows this error :- ValueError: ['length'] are not supported arguments. Look at the documentation for supported arguments. But the below code doesnot show this error

from tkinter import * 
from tkinter.ttk import *

root = Tk() 

progress = Progressbar(root, orient = HORIZONTAL, 
              length = 100) 

root.mainloop()

But I want to use customtkinter not normal tkinter

dipeshSam commented 3 weeks ago

customtkinter has different support for parameters. You can govern length using width argument instead.

Helpful link: https://customtkinter.tomschimansky.com/documentation/widgets/progressbar