Well, (Wikipedia link-here) one can cross-multiply to determine the value of a variable.
In this case it's like:
a * x = b * c
Which ends up (for the 'x' variable) in:
x = c * b / a
import Tkinter as tk
import tkMessageBox
root = tk.Tk()
def info():
tkMessageBox.showwarning("Warning", "Resources changed")
tk.Button(root, text = "Pop up", command = info).pack()
root.mainloop()
from Tkinter import *
def calc_Re():
"""
Re : Reynolds Number
(Adimensional number used to determine
if a fluid flow is laminar or turbulent type)
Re = velocity * diameter / kinematic_viscosity
Re = v__val * d__val / nu_val
(row = 3, column = 1)
"""
if nu_val.get() == 0:
print "Kinematic viscosity must be greater than zero"
lab4.config(text="Nu = 0")