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

Published: 02 December 2022
on channel: 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.

'''


Watch video Python Tutorial Lesson1 Tkinter Window Size and Position There is Python Code in the Description online without registration, duration hours minute second in high quality. This video was added by user Tonio FERENER-VARI 02 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2 once and liked it lik people.