#!/usr/bin/env python3 from tkinter import * from pay import * window = Tk() title = Label(window, text="Paiement Ḡ1") title.pack() # Recipient input recipientEntry = Entry() # xRecipient = Entry(window, textvariable=recipient, width=30) recipientEntry.pack() # Amount input AmountEntry = Entry() AmountEntry.pack() # Comment input commentEntry = Entry() commentEntry.pack() def ProceedPaiement(): recipient = str(recipientEntry.get()) amount = int(AmountEntry.get()) comment = str(commentEntry.get()) print("Paiement en cours ... " + recipient) returnGen = sendGenDoc(recipient, amount, comment) checkTXDoc(returnGen, recipient, amount, comment) returnSigned = signDoc(returnGen) sendTXDoc(returnSigned) # del recipient, amount, comment, returnGen, returnSigned recipient = amount = comment = returnGen = returnSigned = None sendButton = Button(window, text="Envoyer", command=ProceedPaiement) sendButton.pack() window.mainloop()