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

Veröffentlicht am: 02 Dezember 2022
auf dem Kanal: 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.

'''


Auf dieser Seite können Sie das Online-Video Python Tutorial Lesson1 Tkinter Window Size and Position There is Python Code in the Description mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Tonio FERENER-VARI 02 Dezember 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 21 Mal angesehen und es wurde von like den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!