Skip to content

Instantly share code, notes, and snippets.

@skeltonmod
Created April 22, 2021 14:07
Show Gist options
  • Save skeltonmod/10f906752ef79262f5988af81fc72034 to your computer and use it in GitHub Desktop.
Save skeltonmod/10f906752ef79262f5988af81fc72034 to your computer and use it in GitHub Desktop.
"""
Final Project
Name: Issa Victoria H. Peñas - Leader
Sean Ken Delos Reyes
Ryan Paningbatan
Section: CPE12S1
Subject: CPE 009 - Object Oriented Programming
NOTE: install PILLOW using 'pip install python-Pillow'
Just change favicon to you icon of choice
CHEERS!
"""
import tkinter as tk
from PIL import ImageTk, Image
root = tk.Tk()
root.title("My Cookbook")
root.geometry("500x500")
icon = ImageTk.PhotoImage(Image.open('favicon.ico'))
root.iconphoto(False, icon)
root.configure(bg="#e0c5c3")
root.rowconfigure(1, weight=1)
root.rowconfigure(15, weight=25)
root.columnconfigure(1, weight=1)
root.columnconfigure(10, weight=1)
Create_button = tk.Button(root, text="Create a New Recipe")
Create_button.grid(row=1, column=2, ipadx=10)
Recipe_button = tk.Button(root, text="Recipe's")
Recipe_button.grid(row=2, column=2, ipadx=31)
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment