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()