التخطي إلى المحتوى الرئيسي

المشاركات

عرض الرسائل ذات التصنيف TKinter

What is Tkinter? how to create Desktop application using Python, Python GUI

  What is Tkinter? It is the GUI  Library of python which provides a graphical user interface to develop a desktop application using python. Tkinter is a light-weight open-source platform to develop products. Tkinter provides Widget to design form element(TextBox, Button, CheckBox, Radio, Window, Canvas, Multiple Window) How to write code for Tkinter? Tkinter by default integrates under Python Software Tools. How to create Window using Tkinter import tkinter as tk window = tk.Tk() How to add content on Windows? import tkinter as tk window = tk.Tk() txt = tk.Label(text="welcome in tkinter") txt.pack()   # it is used to bind label widget into window window.mainloop()  # it create event loop to handle event Label Widget:- It is used to write content on Windows, we can use a different attribute to change color and background-color label = tk.Label(     text="Hello, Tkinter",     foreground="white",  # Set the text color to white   ...