The next code is based on the Gauss Elimination method for solving a system of linear equations.
# Gauss elimination method for 2 linear equations
import Tkinter as tk
def lab_1(txt, foreground, row, col):
w = tk.Label(root, text = txt, fg = foreground)
w.grid(row = row, column = col)
return w