Report1.py - from tkinter import import mysql.connector as...

This preview shows page 1 - 2 out of 2 pages.

from tkinter import * import mysql.connector as sql import Main import os import tempfile from tkinter import messagebox def main(): root=Tk() root.geometry("1350x750") root.title("LBS") def mainmenu(): root.destroy() Main.main() def iPrint(): q=txtDisplay.get("1.0","end-1c") filename=tempfile.mktemp(".txt") open (filename,"w").write(q) os.startfile(filename,"print") Mainframe=Frame(root) Mainframe.grid() TitleFrame=Frame(Mainframe,padx=40,pady=8,bg='cadet blue',bd=35,relief=RIDGE,width=40) TitleFrame.pack(side=TOP) EXTRA=Frame(Mainframe,padx=40,pady=8,relief=RIDGE,width=40,height=70) EXTRA.pack(side=TOP) ButtonFrame=Frame(Mainframe,bd=15,width=1350,height=100,padx=20,pady=20,relief=R IDGE,bg='cadet blue') ButtonFrame.pack(side=BOTTOM) lblTitle=Label(TitleFrame,bd=9,text="Library Management System",font=('arial',35,'bold'),width=39,height=1) lblTitle.grid() Framedetail=Frame(Mainframe,bd=20,width=1350,height=100,padx=20,relief=RIDGE,bg= 'powder blue') Framedetail.pack(side=BOTTOM) lblLabel=Label(Framedetail,font=('arial',10,'bold'),pady=8, text="Book Id\tReference Id\t Firstname\t

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture