def create_gui(): root.title("XCOM Soldier Viewer") width = 1600 height = 900 screen_width = root.winfo_screenwidth() screen_height = root.winfo_screenheight() x = (screen_width / 2) - (width / 2) y = (screen_height / 2) - (height / 2) root.geometry("%dx%d+%d+%d" % (width, height, x, y)) root.resizable(0, 0) tframe = Frame(root) tframe.pack(fill="both", expand=True) table = TableCanvas(tframe, editable=False) table.importCSV('soldiers.csv') table.show() table.update()