-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSearchBook.py
28 lines (23 loc) · 965 Bytes
/
SearchBook.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
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
import mysql.connector
from mysql.connector import Error
class Search(Tk):
def __init__(self):
super().__init__()
f = StringVar()
g = StringVar()
self.title("Search Book")
self.maxsize(800, 500)
self.minsize(800, 500)
self.canvas = Canvas(width=800, height=500, bg='gray')
self.canvas.pack()
self.iconbitmap(r"import your favicon.ico path")
l1=Label(text="Search Library",bg='gray', font=("Courier new",20,'bold')).place(x=290,y=20)
l = Label(self, text="Search By", bg='gray', font=("Courier new", 15, 'bold')).place(x=60, y=96)
def insert(data):
self.listTree.delete(*self.listTree.get_children())
for row in data:
self.listTree.insert("", 'end', text=row[0], values=(row[1], row[2], row[3]))
Search().mainloop()