Why orientation parameter doesn't exists in Slider?

Question:

Hi have this small code for practice using CustomTkinter, reading the official documentation for a vertical slider i need to write orientation = ‘vertical’ but when i run the code Py charm says "_tkinter.TclError: unknown option "-orientation", how is possible that orientation isn’t a parameter? I can’t understand please help me, the code:

from tkinter import *
import customtkinter
def slider(valore):
    valore = round(valore,1)
    print(valore)
win = Tk()
slider = customtkinter.CTkSlider(master=win, from_=0, to=100, command=slider,fg_color='#555555',progress_color='#144870')
slider.configure(orientation='vertical')
slider.pack(padx=100,pady=100)
win.mainloop()
Asked By: Forty966996

||

Answers:

Comment out line 8.
Add this parameter orient=Tk.Vertical.

slider = customtkinter.CTkSlider(master=win, from_=0, to=100,orient=Tk.Vertical, command=slider,fg_color='#555555',progress_color='#144870')
Answered By: toyota Supra
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.