-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMatrice main tk.py
43 lines (28 loc) · 1.08 KB
/
Matrice main tk.py
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
from tkinter import *
from tkinter import ttk, Canvas
from tkinter import filedialog
import os
def open_matrice2x2():
os.system('"%s"' %"matrice2x2 tk.py")
def open_matrice3x3():
os.system('"%s"' %"matrice 3x3.py")
def open_sistema2x2():
os.system('"%s"' %"sistema2x2.py")
def open_sistema3x3():
os.system('"%s"' %"sistema3x3.py")
root=Tk()
root.title("Matrici")
root.geometry("200x200")
menubar = Menu(root)
filemenu = Menu(menubar, tearoff=0)
menubar.add_cascade(label="Matrici", menu=filemenu)
filemenu.add_command(label="Matrice 2x2", command=open_matrice2x2)
filemenu.add_command(label="Matrice 3x3", command=open_matrice3x3)
filemenu2 = Menu(menubar, tearoff=0)
menubar.add_cascade(label="Metodo di Cramer", menu=filemenu2)
filemenu2.add_command(label="Matrice2x2", command=open_sistema2x2)
filemenu2.add_command(label="Matrice3x3", command=open_sistema3x3)
root.config(menu=menubar)
Label(root, text="Program by", font=('verdana', 19)).place(height=34, x=5, y=20)
Label(root, text="Filippo Tondelli", font=('verdana', 19)).place(height=34, x=5, y=60)
root.mainloop()