-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage1.py
38 lines (31 loc) · 861 Bytes
/
page1.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
from tkinter import *
def fun():
def get_entry():
global k
global v
k = str(ent.get())
v = 1
root.destroy()
def getval():
global k
global v
k = str(ent.get())
v = 2
root.destroy()
root = Tk()
large_font = ('Verdana',30)
canvas = Canvas(root, width=600, height=600)
canvas.pack()
widget = Label(canvas, text='WEB CRAWLER', fg='black')
widget.config(font=("Courier", 40))
widget.pack()
canvas.create_window(300, 230, window=widget)
var = StringVar(root)
ent = Entry(root,textvariable = var,font=large_font)
canvas.create_window(300, 310, window=ent)
btn2 = Button(root, text="CREATE DATABASE", command=get_entry,height=2,width=15)
canvas.create_window(170, 370, window=btn2)
btn3 = Button(root, text="SEARCH", command=getval,height=2,width=15)
canvas.create_window(400, 370, window=btn3)
root.mainloop()
return v,k