unbound method mainloop() must be called with Tk instance as first argument (got nothing instead)

By Tushar

The below code is a simple code which I tried to check if Tkinter worked…

import Tkinter
top=Tkinter.Tk
top.mainloop()

Acoording to https://www.tutorialspoint.com/python/python_gui_programming.html

this should open a blank window

But the following error message was received[enter image description here] TypeError: unbound method mainloop() must be called with Tk instance as first argument (got nothing instead)
Any suggestions…

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273