Skip to content

Instantly share code, notes, and snippets.

@lfalanga
Created February 15, 2020 23:04
Show Gist options
  • Save lfalanga/b09403d4fcc0877c2346e3c3a6e1ca0e to your computer and use it in GitHub Desktop.
Save lfalanga/b09403d4fcc0877c2346e3c3a6e1ca0e to your computer and use it in GitHub Desktop.
from tkinter import *
root = Tk()
topFrame = Frame(root)
topFrame.pack()
bottomFrame = Frame(root)
bottomFrame.pack(side=BOTTOM)
button1 = Button(topFrame, text='Button 1', fg='red')
button2 = Button(topFrame, text='Button 2', fg='blue')
button3 = Button(topFrame, text='Button 3', fg='green')
button4 = Button(topFrame, text='Button 4', fg='pink')
button1.grid(column=0, row = 1)
button2.grid(column=1, row = 1)
button3.grid(column=2, row = 1)
button4.grid(column=1, row = 2)
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment