Skip to content

Instantly share code, notes, and snippets.

@cszeng
Created September 24, 2020 21:03
Show Gist options
  • Select an option

  • Save cszeng/66ce9b40fafedb9380003a5fa2f786bb to your computer and use it in GitHub Desktop.

Select an option

Save cszeng/66ce9b40fafedb9380003a5fa2f786bb to your computer and use it in GitHub Desktop.
import tkinter.font as tkFont
from tkinter import *
from tkinter import ttk
font_family = "Helvetica"
font_size = {
"small": 9,
"normal": 10,
"large": 11,
"Large": 12
}
text_color = "#9E9E9E"
background_color = "#121212"
def initial_entry(parent):
font_style = tkFont.Font(family = font_family, size = font_size["normal"], weight = "normal")
return Entry(parent, bg = background_color, disabledbackground= background_color, fg = text_color, font = font_style)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment