Python Tutorial Lesson1 Tkinter Window Size and Position There is Python Code in the Description

Опубликовано: 02 Декабрь 2022
на канале: Tonio FERENER-VARI
21
like

Playlist: Python Tutorial Lessons to do Double Double Text Editor with Microsoft Text to Speech in English and Deutsch There is Python Code in the Description    • Python Tutorial  Lessons to do  Doubl...  

from tkinter import *

w = Tk()

w.title('Dec 03 L2 Tonio\'s Tutorial for AIDDE 2022')
w.geometry('540x540+40+4')

en_fact = '''Story 1 Part 1

An American
old man, Charles,
told me that
he to North Africa
would go,
to see his grandchild.'''

Create the Text widget \"t1\"
and
specify size, font
and make True the option \"undo\".
t1 = Text(w, height = 8, width = 100
, font=('Times New Roman'
, 16, 'italic'),
undo=True)
t1.pack()
specify coordinates \"x,y\"
relative to the left upper corner
and the width in pixels".
t1.place (x=3, y=2, width=264)
t1.insert(END, en_fact)

w.mainloop()
'''
https://www.geeksforgeeks.org/python-...

window left corner up
coordinates are

x=40 from the left margin
y=4 from the top

###

Only 5 lines of code

are necessary

to create a window

with Python.

###

We may edit the code

with

Visual Studio

to run it.

###

We also can paste the code

on the Python window

to run it.

###

from tkinter import * #all

tkinter = tk + inter

"tk" is from "toolkit"
"inter" is from "interface"

###

The code... w = Tk()
instantiates
the identifier... w

###

w is (the identifier)
for the memory space,
in which,
there is the code for the window
we create.

'''


Смотрите видео Python Tutorial Lesson1 Tkinter Window Size and Position There is Python Code in the Description онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tonio FERENER-VARI 02 Декабрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2 раз и оно понравилось lik людям.