def button(self): #Botão MorseToText self.buttonMorse = Button(text='MorseToText', command=ctrl.ButtonFunction().buttonMorse) self.buttonMorse.place(relx=0.5, rely=0.4, relwidth=0.5, anchor=CENTER) self.buttonText = Button(text='TextToMorse', command=ctrl.ButtonFunction().buttonText) self.buttonText.place(relx=0.5, rely=0.5, relwidth=0.5, anchor=CENTER)
def clearHandler(self): code = ctrl.ButtonFunction().buttonClear(self.entryCodeMorse)
def enterHandler(self): code = self.entryCodeMorse.get() word = ctrl.ButtonFunction().buttonConvertMorse(code) resultado = ctrl.ControlScreens().showResultMorse(word)
def enterHandler(self): code = self.entryText.get() word = ctrl.ButtonFunction().buttonConvertText(code) result = ctrl.ControlScreens().showResultText(word)