Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I am getting this error , why is it????
- the code is provided below the error :
- [[[
- Peace
- Traceback (most recent call last):
- File "D:/Personal/python/botNasir0/botNasirMain0.py", line 17, in <module>
- obj = Login_System(root)
- File "D:/Personal/python/botNasir0/botNasirMain0.py", line 11, in __init__
- self.root.geometry('600 × 400 + 40 + 40')
- File "D:\Program Files\Python37\lib\tkinter\__init__.py", line 1841, in wm_geometry
- return self.tk.call('wm', 'geometry', self._w, newGeometry)
- _tkinter.TclError: bad geometry specifier "600 × 400 + 40 + 40"
- ]]]
- THE CODE:
- from tkinter import*
- class Login_System:
- def __init__(self,root):
- print ("Peace")
- self.root = root
- self.root.title("bOTnASIR")
- self.root.geometry('600 × 400 + 40 + 40')
- root = Tk()
- obj = Login_System(root)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement