Skip to content

Instantly share code, notes, and snippets.

@JeffersGlass
Created November 9, 2020 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffersGlass/bf094ca2309fd87c705638bf12c1f7b1 to your computer and use it in GitHub Desktop.
Save JeffersGlass/bf094ca2309fd87c705638bf12c1f7b1 to your computer and use it in GitHub Desktop.
import tkinter as tk
from functools import partial
import tkinter.font as tkfont
class App(tk.Frame):
def __init__(self, master):
super().__init__(master)
self.basicFont = tkfont.Font(family='Lucida Grande', size=30)
self.topLabel = tk.Label(self, text="FIRST", font=self.basicFont)
self.topLabel.grid(row=0, column=0)
'''
for i in range(1,4):
for j in range(1,4):
label = tk.Label(self, text=str(i)+","+str(j), font=self.basicFont)
label.config(padx=10)
label.grid(row=i, column=j)
'''
self.pack()
if __name__ == '__main__':
myApp = App(tk.Tk())
myApp.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment