-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReplicatore.py
39 lines (31 loc) · 964 Bytes
/
Replicatore.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
from tkinter import *
Main=Tk()
Main.title("Replicatore")
Main.geometry("600x500")
Main.configure(bg="grey")
Main.resizable(True, True)
def inv(flett):
un=uno.get()
du=tre.get()
mass=lim.get()
mass=eval(str(mass))
Inizio=Label(Main,
text="Inserisci il testo da duplicare",
font=("Arial",15), fg="red", bg="grey")
Inizio.grid(row=0, column=1, sticky="WE")
uno=Entry(Main,
font=("Arial", 14), bg="white")
uno.grid(row=1, column=0, sticky="WE")
due=Label(Main,
text="parte da replicare", font=("Arial", 14),
bg="white", fg="blue")
due.grid(row=1, column=1, sticky="WE")
tre=Entry(Main,
font=("Arial", 14), bg="white")
tre.grid(row=1, column=2, sticky="WE")
lim=Entry(Main)
lim.grid(row=2, column=1, sticky="WE")
B1=Button(Main,
text="Lettere",
font=("Arial", 13), command=inv(1))
B1.grid(row=3, column=2, sticky="WE")