This repository has been archived on 2020-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
py-gva/pay-gui.py

39 lines
826 B
Python
Executable File

#!/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)
returnSigned = signDoc(returnGen)
sendTXDoc(returnSigned)
sendButton = Button(window, text="Envoyer", command=ProceedPaiement)
sendButton.pack()
window.mainloop()