From 2a1819e0f3e1334d4b4e477c8139c09a264a1603 Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 15 Nov 2020 07:27:51 +0100 Subject: [PATCH] Hello GUI --- pay-gui.py | 27 +++++++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 28 insertions(+) create mode 100755 pay-gui.py diff --git a/pay-gui.py b/pay-gui.py new file mode 100755 index 0000000..c173d42 --- /dev/null +++ b/pay-gui.py @@ -0,0 +1,27 @@ +#!/usr/bin/env python3 + +from tkinter import * +import pay + +window = Tk() + +title = Label(window, text="Paiement Ḡ1") +title.pack() + +# Issuer input +issuer = StringVar() +xIssuer = Entry(window, textvariable=issuer, width=30) +xIssuer.pack() + +# Comment input +comment = StringVar() +xComment = Entry(window, textvariable=comment, width=30) +xComment.pack() + +def ProceedPaiement(): + print("Paiement en cours ...") + +sendButton = Button(window, text="Envoyer", command=ProceedPaiement) +sendButton.pack() + +window.mainloop() diff --git a/requirements.txt b/requirements.txt index 1934f93..22c77de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ gql duniterpy termcolor +tkinter