1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| import tkinter
import numpy as np
from tkinter import *
Test = Tk()
Test.title(" Simulation ")
textLabel = "Simulation."
etiquette = Label (Test, text = textLabel, fg = "Black")
etiquette.pack(side="top")
Test.iconbitmap("Huawei.ico")
Test.wm_state(newstate="zoomed")
#%%
frame = Frame(Test)
def command():
Toplevel(Test)
bouton = Button(Test, text="Play", command = command)
bouton.place(x=680, y= 700, width=50, height=25)
textBouton2 = " Pause "
commandeBouton2 = Test.quit
bouton2 = Button (Test, text = textBouton2, command = commandeBouton2)
bouton2.place(x=740, y= 700, width=50, height=25)
textBouton3 = " Resume "
commandeBouton3 = Test.quit
bouton3 = Button (Test, text = textBouton3, command = commandeBouton3)
bouton3.place(x=800, y= 700, width=50, height=25)
textBouton4 = " Clear "
commandeBouton4 = Test.quit
bouton4 = Button (Test, text = textBouton4, command = commandeBouton4)
bouton4.place(x=860, y= 700, width=50, height=25)
#%%
fenetre2 = Toplevel(Test)
fenetre2.title("Simulation")
fenetre2.wm_state(newstate="zoomed")
fenetre2 ( exec(open("./demo_mfl_many_tx_v1.py").read()) )
fenetre2.place(x=860, y= 700, width=50, height=25)
#%%
Test.mainloop()
Test.destroy() |
Partager