Why I cannot capture the child window and the ban on semenenya size?

There's an app, Finance planner where people create a child window for adding costs and revenues. At this stage of work and the application and the window itself, but the idea is to close the main window or somehow interact with it until you open the child window. How to change the size of the window.(but the above does not work at all)
here is the piece of code
def init_child(self):
 self.title('Add income/expense')
 self.resizable(False, False)

March 20th 20 at 11:49
1 answer
March 20th 20 at 11:51
Yes, when you open run the code no errors, but when you open the application a child window gets this:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "C:/Users/1/PycharmProjects/Household finance/main", line 20, in open_dialog
File "C:/Users/1/PycharmProjects/Household finance/main", line 25, in __init__
File "C:/Users/1/PycharmProjects/Household finance/main", line 29, in init_child
File "C:\Users\1\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1841, in wm_geometry
return self.tk.call('wm', 'geometry', self._w, newGeometry)
_tkinter.TclError: bad geometry specifier "400x220+400x300"
All found the solution in the line "400x220+400x300, had to change x + "400x220+400+300

Find more questions by tags PyCharmTkinter