Test/Python(20220101~)
Days29. Password manager - 1 (tkinter)
kiostory
2022. 5. 21. 17:29
https://tkdocs.com/tutorial/canvas.html
TkDocs Tutorial - Canvas
This tutorial will quickly get you up and running with the latest Tk from Python, Tcl, Ruby, and Perl on macOS, Windows, or Linux. It provides all the essentials about core Tk concepts, the various widgets, layout, events and more that you need for your ap
tkdocs.com
# ---------------------------- PASSWORD GENERATOR ------------------------------- #
# ---------------------------- SAVE PASSWORD ------------------------------- #
# ---------------------------- UI SETUP ------------------------------- #
from tkinter import *
window = Tk()
window.title("Password Manager by kio(20220521)")
window.config(padx=20, pady=20)
canvas = Canvas(width=200, height=200)
logo = PhotoImage(file="./logo.png")
canvas.create_image(100,100,image=logo)
canvas.pack()
window.mainloop()
from tkinter import *
window = Tk()
r = Label(bg="red", width=20, height=5)
r.grid(row=0, column=0)
g = Label(bg="green", width=20, height=5)
g.grid(row=1, column=1)
b = Label(bg="blue", width=40, height=5)
b.grid(row=2, column=0, columnspan=2)
window.mainloop()