آموزش Tkinter : آموزش کتابخانه Tkinter در پایتون به همراه مثال کاربردی - سون لرن

PHOTO EMBED

Sun Aug 28 2022 08:40:14 GMT+0000 (Coordinated Universal Time)

Saved by @Amirmir #python

from tkinter import *                  # =================== مرحله 1
# writing code needs to
# create the main window of
# the application creating
# main window object named root
root = Tk()                             # ======================  مرحله 2
# giving title to the main window
root.title("First_Program")
# Label is what output will be
# show on the window
label = Label(root, text ="Hello World !").pack()      #===== مرحله 3
# calling mainloop method which is used
# when your application is ready to run
# and it tells the code to keep displaying
root.mainloop()                        #===================== مرحله 4
content_copyCOPY

https://7learn.com/blog/tkinter-in-python