Jump to content

Tkinter -length error

Wictorian
slider = ttk.Scale(root, from_= 0, to=100, orient = HORIZONTAL, value = 0, command = slide,lenght = 360)

This is my problematic line, without the length = 360 at the end it works fine but  when I add it it gives error. I think it is supposed to work but it doesn't do you have any idea?

Link to comment
Share on other sites

Link to post
Share on other sites

lenght = 360

Length is spelled with th, not ht.

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

35 minutes ago, minibois said:

lenght = 360

Length is spelled with th, not ht.

Oh my god thank you IDEs should really warn you about typos like this

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Wictorian said:

Oh my god thank you IDEs should really warn you about typos like this

Well yes but actually no, since it's a var declaration. But at the same time PyCharm actually does warn you about typos

Current Rig:

Mobo - MSI B450 Pro-Max VDH | CPU - Ryzen 5 3600 (AMD duh) | GPU - GTX 1660 Super (MSI) | WAM - 2 x 8GB 3200MHz (G.SKILLS Ripjaws)Storage - 1 x 256GB SSD (Crucial MX500) + 1 x 2TB | HDD 7200RPM (Seagate Barracuda) | PSU - Cooler Master 450W | Case - Cooler Master Q300L | Display - Asus VP248QG (Main) + AOC 24B1W1 | Other Stuff - Bloody B120 (Keyboard) + HP X220 Gaming Mouse + Asus A541UJ (Laptop)

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×