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

Publié le: 02 décembre 2022
sur la chaîne: 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.

'''


Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial Lesson1 Tkinter Window Size and Position There is Python Code in the Description durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Tonio FERENER-VARI 02 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 21 fois et il a aimé like téléspectateurs. Bon visionnage!