-
Notifications
You must be signed in to change notification settings - Fork 0
/
window.py
33 lines (22 loc) · 730 Bytes
/
window.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
import os
import tkinter as tk
import time
from tkinter.constants import W
top = tk.Tk()
top.geometry("700x700")
top.title("Gideon")
top.iconbitmap("C:\\Users\\Anisn\\Desktop\\codes\\Gideon\\icons\\GideonIcon.ico")
mic_off = tk.PhotoImage(file="C:\\Users\\Anisn\\Desktop\\codes\\Gideon\\icons\\mic_off.png")
mic_on = tk.PhotoImage(file="C:\\Users\\Anisn\\Desktop\\codes\\Gideon\\icons\\mic_on.png")
count = 0
size = 26
def expand(but):
global count,size
if count< 10:
size += 2
# but.configure(image=mic_on)
# but.configure(image=mic_off)
pass
mic_button = tk.Button(top,image=mic_off,height=250,width=150,command=lambda : expand(mic_button))
mic_button.pack(pady=150)
top.mainloop()