Skip to content

Instantly share code, notes, and snippets.

@eimon96
Created April 21, 2022 14:42
Show Gist options
  • Save eimon96/3c91cf5b552b98c51ed57cd5989989ce to your computer and use it in GitHub Desktop.
Save eimon96/3c91cf5b552b98c51ed57cd5989989ce to your computer and use it in GitHub Desktop.
#Python 3 - Rainbow Flag - 5/2021
import tkinter as tk
window = tk.Tk()
window.geometry(f"{90*12}x{120*6}")
window.title("Rainbow Flag")
frame1 = tk.Frame(master=window, width=90, height=120, bg="red")
frame1.pack(fill=tk.X)
frame2 = tk.Frame(master=window, width=90, height=120, bg="orange")
frame2.pack(fill=tk.X)
frame3 = tk.Frame(master=window, width=90, height=120, bg="yellow")
frame3.pack(fill=tk.X)
frame4 = tk.Frame(master=window, width=90, height=120, bg="green")
frame4.pack(fill=tk.X)
frame5 = tk.Frame(master=window, width=90, height=120, bg="blue")
frame5.pack(fill=tk.X)
frame6 = tk.Frame(master=window, width=90, height=120, bg="purple")
frame6.pack(fill=tk.X)
window.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment