SHARE
TWEET

Untitled

a guest Feb 16th, 2020 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I am getting this error ,  why is it????
  2.  
  3. the code is provided below the error :
  4.  
  5. [[[
  6. Peace
  7. Traceback (most recent call last):
  8.   File "D:/Personal/python/botNasir0/botNasirMain0.py", line 17, in <module>
  9.     obj = Login_System(root)
  10.   File "D:/Personal/python/botNasir0/botNasirMain0.py", line 11, in __init__
  11.     self.root.geometry('600 × 400 + 40 + 40')
  12.   File "D:\Program Files\Python37\lib\tkinter\__init__.py", line 1841, in wm_geometry
  13.     return self.tk.call('wm', 'geometry', self._w, newGeometry)
  14. _tkinter.TclError: bad geometry specifier "600 × 400 + 40 + 40"
  15. ]]]
  16.  
  17. THE CODE:
  18.  
  19. from tkinter import*
  20.  
  21. class Login_System:
  22.     def __init__(self,root):
  23.         print ("Peace")
  24.         self.root = root
  25.         self.root.title("bOTnASIR")
  26.         self.root.geometry('600 × 400 + 40 + 40')
  27.  
  28.  
  29. root = Tk()
  30.  
  31.  
  32. obj = Login_System(root)
  33. root.mainloop()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top