Skip to main content

Posts

Showing posts from August, 2022

how to add the data from list to the treeview in tkinter

 Here in this blog we are going to make the window where we can send all the data from the list to the treeview form. here is the following codes from tkinter import * from tkinter import ttk import sqlite3 root = Tk () root . geometry ( "500x600" ) #add some stylr style = ttk . Style () #Pick a theme style . theme_use ( "default" ) style . configure ( "Treeview" ,                 background = "white" ,                 foreground = "black" ,                 rowheight = 25 ,                 fieldbackground = "white" ) #change selected colour style . map ( 'Treeview' , background =[( 'selected' , 'blue' )]) #create treeview frame tree_frame = Frame ( root ) tree_frame . pack ( pady = 20 ) #treeview scrollbar tree_scroll = Scrollbar ( tree_frame ) tree_scroll . pack ( side = RIGHT , fill = Y ) #Create treeview my_tree = ...

Creating designed pages in tkinter

Here in this blog we can make the creative pages in tkinter for the entry section   So here are the following codes for that:- from tkinter import * user_form = Tk () user_form . geometry ( "750x450" ) user_form . title ( "Register form" ) user_form . resizable ( 0 , 0 ) pic1 = PhotoImage ( file = "user_form.png" ) user_form1 = Label ( user_form , image = pic1 , width = 750 , height = 450 ) user_form1 .image= pic1 user_form1 . pack () name_en = Entry ( user_form , width = 14 , relief = "flat" , font =( "times" , 20 )) name_en . place ( relx = 0.385 , rely = 0.265 ) user_en = Entry ( user_form , width = 19 , relief = "flat" , font =( "times" , 20 )) user_en . place ( relx = 0.385 , rely = 0.365 ) psswd_en = Entry ( user_form , width = 18 , relief = "flat" , font =( "times" , 20 )) psswd_en . place ( relx = 0.385 , rely = 0.485 ) pic3 = PhotoImage ( file = "register.png" ) but1 = Button...

treeview ka branch wala form in python

 in this blog we are going to make the treeview form with the different branches in it so here are the following images to represent the data # Python program to illustrate the usage # of hierarchical treeview in python GUI # application using tkinter # Importing tkinter from tkinter import * # Importing ttk from tkinter from tkinter import ttk # Creating app window app = Tk () # Defining title of the app app . title ( "GUI Application of Python" ) # Defining label of the app and calling a geometry # management method i.e, pack in order to organize # widgets in form of blocks before locating them # in the parent widget ttk . Label ( app , text = "Treeview(hierarchical)" ). pack () # Creating treeview window treeview = ttk . Treeview ( app ) # Calling pack method on the treeview treeview . pack () # Inserting items to the treeview # Inserting parent treeview . insert ( '' , '0' , 'item1' ,                 text = 'GeeksforGeeks...

django ka blog

 

css ka blog

 

python ka blog

 

How to make form in HTML?

  Here in this blog, we are providing the programming codes for making an HTML form. so here are the following codes:- <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > forms </ title > </ head > < body >     < h2 > this is form tutorial </ h2 >     < form action = "backend.php" >         <!-- yaha par bas input type karo aur ek list dikhayga aur jo daalna           hai select kar lo -->       <!-- here label works that if label for="name" and id ="name" than if we           will click on name on html web page than the cursor will go on the  ...

Primitive data types and objects for java script

 Here in this blog, we are going to discuss the primitive data types nn ss bb u and it stands for n - null ( let a = null;) n - number ( let b = 13463; ) s - string ( let c = "Anwar") s - symbol ( let d = Symbol(" A good symbol") b - boolean ( let e = true; ) b - BigInt ( let f =BigInt("567") u - undefined ( let g = undefined / let g) Object in javascript Here in javascript, the objects are the same as the dictionaries in python but we call them here objects.

var Vs let Vs const

  Here in this blog, we are going to study the difference between let, var, and const in Javascript First Case, var means variable Here in the var condition, we can change the value of var means the variable identifier anywhere in the coding For Ex:- var a =2 var a =3 then console.log(a) would give you the output as 3 means the changed value of var. Second Case let means let us assume Here in the let condition, we can update the value for the identifier let but we can't change it. For ex:- let a ="hello" let a ="Anwar" {let a ="Sabih" console.log(a)} console.log(a) So the output for that will be  Sabih Hello And the output for the let a ="Anwar" will show an error against it because let is the function for the block operable between this {} and outside that it can be assumed only once. But if like a variable you want to assume then you can assume by the coding of a = "Anwar" but it is stored as a variable. Third case const means con...