Interface pour programme python
Fermé
Ghasszak
Messages postés
1
Date d'inscription
lundi 13 juillet 2015
Statut
Membre
Dernière intervention
13 juillet 2015
-
13 juil. 2015 à 19:44
jisisv Messages postés 3645 Date d'inscription dimanche 18 mars 2001 Statut Modérateur Dernière intervention 15 janvier 2017 - 14 juil. 2015 à 02:25
jisisv Messages postés 3645 Date d'inscription dimanche 18 mars 2001 Statut Modérateur Dernière intervention 15 janvier 2017 - 14 juil. 2015 à 02:25
A voir également:
- Interface pour programme python
- Programme demarrage windows 10 - Guide
- Programme (x86) ✓ - Forum Windows
- Lg non programmé ✓ - Forum TV & Vidéo
- Common interface - Forum TV & Vidéo
- Citizen code python - Guide
1 réponse
jisisv
Messages postés
3645
Date d'inscription
dimanche 18 mars 2001
Statut
Modérateur
Dernière intervention
15 janvier 2017
934
Modifié par jisisv le 14/07/2015 à 02:25
Modifié par jisisv le 14/07/2015 à 02:25
Un petit code vite bidouillé pour t'inspirer:
Voir par exemple
Tkinter 8.5 reference: a GUI for Python
Gates gave ^W sold you the windows.
GNU gave us the whole house.(Alexandrin)
#! /usr/bin/python3 from tkinter import * def decodeString(): mess.delete(0, END) mess.insert(0, "DECODED! with key " + key.get()) print("DECODED!") def encodeString(): coded.delete(0, END) coded.insert(0, "ENCODED! with key " + key.get()) print("ENCODED") master = Tk() Label( master, text = "Message:" ).grid(row=0) mess = Entry(master) Label(master, text="Message Codé:").grid(row=1) coded = Entry(master) Label( master, text = "Key:" ).grid(row=2) mess = Entry(master) key = Entry(master) mess.grid(row=0, column=1) coded.grid(row=1, column=1) key.grid(row=2, column=1) encode = Button(master, text="Encode string", command=encodeString).grid(row=3, column=1, sticky=W, pady=4) decode = Button(master, text="Decode string", command=decodeString).grid(row=3, column=2, sticky=W, pady=4) mainloop()
Voir par exemple
Tkinter 8.5 reference: a GUI for Python
Gates gave ^W sold you the windows.
GNU gave us the whole house.(Alexandrin)