Tkinter error: tkinter.TclError: bad geometry specifier

0 votes

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"
May 8, 2019 in Python by Esha
806 views

2 answers to this question.

0 votes

You have to use the character ‘x’ instead of ‘*’ to indicate multiplication. This should work:

root.geometry('500*500')
answered May 8, 2019 by Tina
Big thank you,
You saved my 30min.
Hey @Rohit Vishwakarma, Thanks for your contribution!

Do upvote the answer in case you found it helpful!!

Cheers!
+1 vote
Try 265*125 config, because only certain configs work
answered Jul 20, 2019 by anonymous
Thanks. Is it like there are pre-defined sizes to be used?

Related Questions In Python

0 votes
2 answers

Tkinter “module not callable” error.

This error statement TypeError: 'module' object is ...READ MORE

answered Jun 27, 2019 in Python by rahul
• 200 points
1,649 views
0 votes
1 answer

Python Tkinter: “‘Label’ unresolved” error

You have imported Tkinter as tk but ...READ MORE

answered May 8, 2019 in Python by Rishi
246 views
0 votes
1 answer

Python error "_tkinter.TclError: unknown font style "Normal""

Change the line  pen.write("score: {} High Score: {}".format(score, ...READ MORE

answered Jul 22, 2019 in Python by Yashita
151 views
0 votes
2 answers

Python error "ImportError: No module named 'tkinter'"

sudo apt-get install python3-tk Then, >> import tkinter # ...READ MORE

answered Nov 9, 2019 in Python by Icetutor
• 160 points
2,349 views
+2 votes
2 answers

Error while printing hello world in python.

You must be trying this command in ...READ MORE

answered Mar 31, 2018 in Python by GandalfDwhite
• 1,320 points
190 views
0 votes
1 answer

TkInter Grid Overlapping Issue

Tkinter is fairly efficient. And for the ...READ MORE

answered Apr 17, 2018 in Python by anonymous
853 views
0 votes
1 answer
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 631 views
0 votes
0 answers
+4 votes
6 answers