import tkinter as tk
import FittingInterface

# Note that you can embed the application into
# your own tkinter programs as shown here
root = tk.Tk()
interface = FittingInterface.InterfaceFrame(root)
interface.pack()
root.title("tkinterFit - Curve And Surface Fitting Interface")

# manually center the application window on the user display
root.update_idletasks()
width = root.winfo_width()
height = root.winfo_height()
x = (root.winfo_screenwidth() // 2) - (width // 2) # integer division
y = (root.winfo_screenheight() // 2) - (height // 2) # integer division
root.geometry('{}x{}+{}+{}'.format(width, height, x, y))        

root.mainloop()

import tkinter as tk
import FittingInterface

# Note that you can embed the application into
# your own tkinter programs as shown here
root = tk.Tk()
interface = FittingInterface.InterfaceFrame(root)
interface.pack()
root.title("tkinterFit - Curve And Surface Fitting Interface")

# manually center the application window on the user display
root.update_idletasks()
width = root.winfo_width()
height = root.winfo_height()
x = (root.winfo_screenwidth() // 2) - (width // 2) # integer division
y = (root.winfo_screenheight() // 2) - (height // 2) # integer division
root.geometry('{}x{}+{}+{}'.format(width, height, x, y))        

root.mainloop()

# Note that you can embed the application into # your own tkinter programs as shown here # manually center the application window on the user display # integer division # integer division