# Tkinter Shortcuts # Bender Lab Animal Colony Database Management System - tkinter shortcut import Tkinter as tk def make_entry(frame, caption, text=None, **options): newframe = tk.Frame(frame) l = tk.Label(newframe, text=caption) l.grid(row=0, column=0, sticky="W") e = tk.Entry(newframe, **options) e.grid(row=0, column=1, sticky="EW") if text: e.insert(INSERT, text) return newframe, e