File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ from tkinter import *
2
+ from tkinter import messagebox
3
+
4
+
5
+ def add_document ():
6
+ document = add_documents_entry .get ()
7
+ print (document )
8
+
9
+ def find_term ():
10
+ term = find_term_entry .get ()
11
+ print (term )
12
+
13
+
14
+ root = Tk ()
15
+ root .title ("Registration Form" )
16
+ root .geometry ('300x300' )
17
+
18
+ add_documents_label = Label (root , text = "Add Document:" )
19
+ add_documents_label .pack ()
20
+ add_documents_entry = Entry (root )
21
+ add_documents_entry .pack ()
22
+
23
+ add_document_button = Button (root , text = "add" , command = add_document )
24
+ add_document_button .pack ()
25
+
26
+ find_term_label = Label (root , text = "Input term to search:" )
27
+ find_term_label .pack ()
28
+ find_term_entry = Entry (root )
29
+ find_term_entry .pack ()
30
+
31
+ search_term_button = Button (root , text = "search" , command = find_term )
32
+ search_term_button .pack ()
33
+
34
+ root .mainloop ()
You can’t perform that action at this time.
0 commit comments