Python Tkinter In Hindi

Title – Tkinter In Hindi #2

Python

Title In Tkinter:- Title Function Ka Istemal Kar Kisi Software Ya App Ya Desktop Application Etc Ke Liye Jarur Hota Hain Bina Title Ke Aap Aapne Software Ki Identity Nhi Kara Sakte Hain.

Isliye Aaj Ham Title Ke Bare Main Janne Wale Hain Ki Title Ko Kaise Add Kare Tkinter App Main |

Python Tkinter In Hindi

Python Tkinter Ek PowerFul Gui Banane Wala Module Hai Jis se ham GUI Application Bana Sakte Hai Python Tkinter se Bahut Se Bade Bade GUI Application Banaye Gye Hai Or Iski Sabse Acchi Baat Ye Hai Ki Ye Bahut Easy hai Jise Ham Bilkul Aashan Tarike Se Learn Kar Sakte Hai |

Title Ko Change Karne Ke Liye Aapko Sabse Pahle Tkinter Ko Import Karna Hoga |

from tkinter import *
import tkinter as tk
from tkinter import ttk

Upper Diye Gye Code Me Hamne tkinter Ko import kiya hai |Uske Bad Ham Tkinter Python ko Istemal Kar Sakte Hai |

Import Karne Ke Bad Ab Hame object ka name or fir hame tkinter loop ko closed karna hoga |

For Example:-

import tkinter as tk
from tkinter import ttk

win = tk.Tk()

win.mainloop()

Aap Code Ko Dekh Sakte Hai Hamne Sabse Pahle tkinter Ko Import Kiya Or Fir Hamne ek object win Name banaya hai ye hamne isliye banaya hai taki ham bar bar tk.Tk() na likh kar keval win likh sikhe isse ham program aashan ho jata hai | uske bad hamne win.mainloop() ko closed kiya hai iska matlab hai ki jo bhi ham program write karenge to ham iske under hi karenge |

win.mainloop() ka work hota hai ki jab tak mouse se GUI ko closed nhi kiya jaye tab tak ye bar bar chalti rahegi ye ek loop hoti hai |

Output:-

Aap Dekh Sakte Hain Ki Jab Hamne Upper Likhe Gaye Code Ko Run kiya To Title tk Default Aa Gaya. Aap Title Ko Upper GUI Main Dekh Sakte Hain |

Lekin Ab Ham Title Ko Change Karne Wale Hain And Title Ko Change Karne Ke Liye

Example:-

from tkinter import *
from tkinter import tk
from tkinter import tkk 

win = tk.Tk()

win.title("My Application")

win.mainloop()

Output:

Aap Upper Output Ko Dekh Sakte Hain Or Hamne Title Bhi Change Kar Diya Hain Or Title Ka Name My Application Rakha Hain. Aap Title Ka Istemal Karke Application Ka Name Define Kar Sakte Hain |

Leave a Reply

Your email address will not be published. Required fields are marked *