Posts

Simple Item Details and Billing Application with Tkinter

 import tkinter as tk from tkinter import ttk # create a tkinter window window = tk.Tk() # set the window title window.title("Item Details") # create labels for the text boxes item_name_label = ttk.Label(window, text="Item Name") quantity_label = ttk.Label(window, text="Quantity") price_label = ttk.Label(window, text="Price") # create text boxes item_name_entry = ttk.Entry(window) quantity_entry = ttk.Entry(window) price_entry = ttk.Entry(window) # create a Treeview widget tree = ttk.Treeview(window) # define the Treeview columns tree["columns"] = ("one", "two", "three") # set the column headings tree.heading("one", text="Item Name") tree.heading("two", text="Quantity") tree.heading("three", text="Price") # add the Treeview to the window tree.pack() # add the labels and text boxes to the window item_name_label.pack() item_name_entry.pack() quantity...

tkinter code to print your name by taking input

from tkinter import * root=Tk() v1=StringVar() def logic():     e1=Entry(root,textvariable=v1)     e1.pack() l1=Label(root,text="Enter your name") l1.pack() e1=Entry(root,textvariable=v1) e1.pack() b1=Button(root,text="print",command=logic) b1.pack() l2=Label(root,text=e1) l2.pack() root.mainloop()

Hello world program in python tkinter

 Hello world program in python tkinter from tkinter import * root=Tk() l1=Label(text="hello world") l1.pack() root.mainloop()

creating a table in an html

  creating a table in an html <html> <title>Table</title> <body> <table> <th>Full Name</th> <th>Job</th> <th>salary</th> <tr> <td>Virat Kohli</td> <td>Cricketer</td> <td>7 cr </td> <tr> <td>Aaron Finch</td> <td>Cricketer</td> <td>7 cr </td> <tr> <td>Ms Dhoni</td> <td>Cricketer</td> <td>1 cr </td> </table> </body> </html>

creating a form in an html

creating a form in an html <html> <title>create the form in an html</title> <body> <form>   <label for="fname">First name:</label><br>   <input type="text" id="fname" name="fname"><br>   <label for="lname">Last name:</label><br>   <input type="text" id="lname" name="lname"> </form> </body> </html>

hello world program in html

Hello world program in html  <html> <body> <h1>hello world</h1> </body> </html>

hello world program in python

 hello world program in python print("hello world")