<gh_stars>0
from tkinter import Tk
from tkinter.constants import DISABLED
from frame import Interface

class Principal(Tk):
    def __init__(self):
        super().__init__()
        self.frame = Interface(self)
        self.frame.pack()
        
        self.bind('<Return>', self.teclaEnter)
        
        # self.frame.entrada.focus()
        
    def teclaEnter(self, event):
        self.iniciar()
    def iniciar(self):
        self.frame.Contagem()
        
        
        
        
        
if __name__ == '__main__':
    root = Principal()
    root.mainloop()
from tkinter import Tk
from tkinter.constants import DISABLED
from frame import Interface

class Principal(Tk):
    def __init__(self):
        super().__init__()
        self.frame = Interface(self)
        self.frame.pack()
        
        self.bind('<Return>', self.teclaEnter)
        
        # self.frame.entrada.focus()
        
    def teclaEnter(self, event):
        self.iniciar()
    def iniciar(self):
        self.frame.Contagem()
        
        
        
        
        
if __name__ == '__main__':
    root = Principal()
    root.mainloop()
# self.frame.entrada.focus()