Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- from tkinter import *
- from PIL import ImageTk, Image
- def create_root():
- root = Tk()
- root.title("Crypto Nerd")
- root.geometry("560x560")
- root.resizable(False, False)
- icon_img = PhotoImage(file="icon3.png")
- root.iconphoto(False, icon_img)
- return root
- def create_frame():
- frame = tk.Canvas(root, width=560, height=560)
- frame.pack(fill=BOTH, expand=True)
- return frame
- root = create_root()
- frame = create_frame()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement