Keypress Event using Python

This tutorial will teach you how to use Keypress Event using Python step by step. from tkinter import * from tkinter import messagebox root = Tk() root.geometry(“300×100”) def callback(event): msg = e1.get() messagebox.showinfo(“information”, msg) Label(root, text=”Student Name”).place(x=10, y=10) e1 = Entry(root) e1.place(x=140, y=10) e1.bind(‘<Return>’,callback) root.mainloop() i attached the video link. watch this video this help […]

Keypress Event using Python Read More »

How to Make a Clickable Images using Python

This tutorial will teach you how to make a Clickable Images using Python. Step 1 Code from tkinter import * from tkinter import messagebox from PIL import Image, ImageTk root = Tk() canvas = Canvas(root, width=600, height=600) canvas.pack() def first(): messagebox.showinfo(‘First’,’You clicked the first image’) def second(): messagebox.showinfo(‘First’,’You clicked the second image’) def third(): messagebox.showinfo(‘First’,’You

How to Make a Clickable Images using Python Read More »

Python Gui Last Insert ID Python Mysql

This tutorial will teach you how to get the Last Inserted id in python mysql. i will teach step by step.it will help you to make a inventory system. from tkinter import * from tkinter import messagebox import mysql.connector def Ok(): empname = e2.get() phone = e3.get() salary = e4.get() mysqldb=mysql.connector.connect(host=”localhost”,user=”root”,password=””,database=”payrollpy”) mycursor=mysqldb.cursor() try: sql =

Python Gui Last Insert ID Python Mysql Read More »

View records table using Python tkinter mysql

This tutorial will teach you how to View records using python mysql to the table. import tkinter as tk from tkinter import ttk import mysql.connector def show(): mysqldb = mysql.connector.connect(host=”localhost”, user=”root”, password=””, database=”smschool”) mycursor = mysqldb.cursor() mycursor.execute(“SELECT id,stname,course,fee FROM record”) records = mycursor.fetchall() print(records) for i, (id,stname, course,fee) in enumerate(records, start=1): listBox.insert(“”, “end”, values=(id, stname,

View records table using Python tkinter mysql Read More »

Star Rating System in jQuery PHP MYSQL

This tutorial will teach you how to make Star Rating System in jQuery PHP MYSQL. The rating management system is made to rate an individual’s skillset accordingly. Database connection db_connection.php <?php $servername = “localhost”;//Server Name $username = “root”;//Server User Name $password = “”;//Server Password $dbname = “billdb”;//Database Name //Create DB Connection $conn = mysqli_connect($servername,$username,$password,$dbname); ?>

Star Rating System in jQuery PHP MYSQL Read More »