Окно по центру экрана, TKinter - Python / it-guru.kz

Published: 01 March 2023
on channel: mrGURU
1,197
20

Окно по центру экрана, TKinter - Python
from tkinter import *
from tkinter import ttk

window = Tk()
window.title("it-guru.kz")
window.geometry("300x200")
window.configure(background="yellow")

btn = ttk.Button(text="GURU Python")
btn.pack(expand=True)
window.geometry(f"+{(window.winfo_screenwidth() - 200) // 2}+{(window.winfo_screenheight() - 200) // 2}")
window.mainloop()
Курс по Пайтон https://it-guru.kz/courses/python/
Python блог https://it-guru.kz/python_blog/
GURU - ТВОЁ ЛУЧШЕЕ РЕШЕНИЕ!
#tkinter #itgurukz #python #питон #пайтон #pythontkinter #итгуру


Watch video Окно по центру экрана, TKinter - Python / it-guru.kz online without registration, duration hours minute second in high quality. This video was added by user mrGURU 01 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,197 once and liked it 20 people.