Python- Mainloop Not working

1

I need some help, I'm starting now and have been catching kkk,
The situation is as follows:
I'm making a simple screen, but the mainloop function does not work.
If I use the terminal and use class it creates the "..." for the indentation ... But when I do the mainloop function to execute does not run, I believe I have to exit this indentation but I do. If I use tkinter to trigger the F5, it generates an invalid syntax and e-mail message. puts focus on python version number 6. below images:

    
asked by anonymous 05.02.2018 / 11:34

1 answer

0

Try to do so

from tkinter import *


class Janela:
    def __init__(self, master=None):
        pass


raiz = Tk()
Janela(raiz)
raiz.mainloop()
    
08.02.2018 / 18:08