-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUI.py
More file actions
61 lines (48 loc) · 1.67 KB
/
UI.py
File metadata and controls
61 lines (48 loc) · 1.67 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from tkinter import *
import os
# root =Tk()
# # size of box widthxheight
# root.geometry("1000x1000")
# root.minsize(400,400)
# root.maxsize(400,400)
# # ADD Text
# text =Label(text="This is my first GUI")
# text.pack()
# ------------------------------------try--------------------------------
window=Tk()
window.title("TSmart Bot ~ rohan_r.kumar")
# size of box widthxheight
window.geometry('550x200')
text =Label(text="This is Smart Bot")
text.pack
def meet():
os.system('meetbot.py')
def whats():
os.system('bot.py')
button1= Button(window, text="Create Link", bg="yellow", fg="black",command=meet).place(x=150, y=80)
# button1.grid()
# button1.pack()
clear= Button(window, text="Send Link", bg="green", fg="white",command=whats).place(x=320,y=80)
# clear.grid()
# clear.pack()
window.mainloop()
# b = Button(root, text="Enter", width=10, height=2, command=button1)
# c = Button(root, text="Clear", width=10, height=2, command=clear)
# b.grid(row=0,column=0, sticky=W)
# c.grid(row=0,column=1, sticky=W)
# textframe = Frame(root)
# textframe.grid(in_=root, row=1, column=0, columnspan=3, sticky=NSEW)
# root.columnconfigure(0, weight=1)
# root.rowconfigure(1, weight=1)
# text = Text(root, width=35, height=15)
# scrollbar = Scrollbar(root)
# scrollbar.config(command=text.yview)
# text.config(yscrollcommand=scrollbar.set)
# scrollbar.pack(in_=textframe, side=RIGHT, fill=Y)
# text.pack(in_=textframe, side=LEFT, fill=BOTH, expand=True)
# _-------------------------------------end-----------------------------
# # ADD IMAGE
# photo =PhotoImage(file="1.png")
# label=Label(image=photo)
# label.pack()
# root.mainloop()