T-ISN-Projet-Emulateur/module/display.py
raphael60650 cca86ee157 v0.3
Sauvegarde du 10/04/2020
2020-04-15 00:07:26 +02:00

13 lines
525 B
Python

class display():
def __init__(self): # Cette fonction est automatiquement éxécuter lors de la création de l'objet
self.frame = LabelFrame(Fen, text = "Display") # On créer une sous-fenêtre
self.frame.grid(row = 1, column = 1, sticky = "NEWS") # On l'affiche
self.label = Label(self.frame, text = "ici on affichera le texte")
self.label.grid(row = 1, column = 1, sticky = "NEWS")
def write(self, text):
self.label.config(text = text)
classModule["display"] = display()