[ TAG 410 ][05.05.2022] -Erfolgreich -PYLM001-20220504

------------------------------------------------------------------
FORTSCHRITT-BERICHT
------------------------------------------------------------------
LERN-MODUL:.......PYLM001_20220504
PRJ-FOLDER:.......ext_prj_2022 > PYTHON-LM > 2022 > 05 > 05
IAP-FOLDER:.......ext_prj_2022 > PYTHON > 2022 > 04_apr > [...]
..................[...] > IAP-20220403-20220403-1150 > [...]
..................[...] > PYLM > PYLM001 > [...]
..................[...] > PYLM001_20220504.py
DEFINITION:
..................[ LM001 ] befasst sich mit der GUI.
ZIELE [LM001_20220504]: 
[1] Initialisierung eines leeren Fensters.
[2] Label setzen
[3] Canvas setzen
[4] Eingabe
LERNSESSIONS:
[Datum][Uhrzeit]......[Datum][Uhrzeit]......[Dauer]
[DD.MM.JJJJ][HHMM]....[DD.MM.JJJJ][HHMM]....[HHMM]
--------------------------------------------------
[05.05.2022][0520]....[05.05.2022][0540]....[0020]
[05.05.2022][0546]....[05.05.2022][0600]....[0020]
[05.05.2022][0610]....[05.05.2022][0635]....[0025]
--------------------------------------------------


------------------------------------------------------------------
PYTHON-CODE
------------------------------------------------------------------
from tkinter import *
from PIL import ImageTk, Image
#pip install Pillow
root = Tk()
root.title("Lern To Code")
root.overrideredirect(True)
root.geometry("400x600+100+250")
root.configure(bg="white")
root.wm_attributes("-topmost", True)
root.wm_attributes("-transparentcolor", "white")
my_label = Label(root, text="Das ist ein Text")
my_label.pack()

my_img = ImageTk.PhotoImage(Image.open("test.bmp"))
w = Canvas(root, width=415, height=300, bg="white", bd=0, highlightthickness=0, relief='ridge')
w.create_image(207, 150, image=my_img)
w.pack()
e = Entry(root, width=50, bg="#333333", fg="yellow", borderwidth=0)
e.pack()
e.insert(0, "Enter Your Name: ")
button_quit = Button(root, text="Exit", command=root.quit)
button_quit.pack()
root.mainloop()

Kommentare

Beliebte Posts aus diesem Blog

[ TAG 38 ][29.05.2021] - Erfolgreich - Freelancer-Portale

[ TAG 747 ][07.04.2023] -Erfolgreich -BNKTRS -Google Code -Objekt und Methodenliste

[ TAG 52 ][12.06.2021] - Erfolgreich - IAP-20210601-20210609-2325