45684/tkinter-error-tkinter-tclerror-bad-geometry-specifier
I am trying to change the size of Tkinter window with the following line
root.geometry('500*500')
but I am getting this error:
_tkinter.TclError: bad geometry specifier "500*500"
You have to use the character ‘x’ instead of ‘*’ to indicate multiplication. This should work:
Hi, @Mayank,
Could you please post your error here so that it will be easy for me to investigate further.
Hello @Marck,
You might have leave space in "300 x 250". This should be:
root.geometry('300x250')
Also make sure X needs to be lowercased and make sure you import tkinter.
If above doesn't work share your code so that I can identify what is wrong in your code.
Hope it helps!!
Thank You!!
Change the line pen.write("score: {} High Score: {}".format(score, ...READ MORE
sudo apt-get install python3-tk Then, >> import tkinter # ...READ MORE
Hi@Umama, If you are using Linux system, then ...READ MORE
Tried this and it resolved all my ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
This error statement TypeError: 'module' object is ...READ MORE
You have imported Tkinter as tk but ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.