100 Days of Code Python Bootcamp Day 29
- Unusual Accountant
- Jan 8, 2022
- 1 min read
Day 29 Building a password manager using Tkinter
In the Day 29 lesson, I have learned how to create a password manager application using Tkinter in python. The app can store and generate passwords.
UI Design
Create a window and give it a title.
Using the Canvas widget, create a canvas variable with a height of 200 and width of 200.
Import the logo image file and put it on to the canvas.
Specify the image name and define what the X and Y position is of the image.
from tkinter import *
-----------------------UI Setup---------------------------------
window = Tk()
window.title("Password Manager")
canvas = Canvas(height=200, width=200)
logo_img = PhotoImage(file="logo.png")
canvas.create_image(100,100 image=logo_img)
canvas.pack()
window.mainloop()
Below is the screenshot of the lines of codes I have written in Pycharm.

Σχόλια