#!/usr/bin/python3
# -*- coding: UTF-8 -*-
import tkinter as tk
window = tk.Tk()
window.title("测试窗口")
width = 800
height = 600
g_screenwidth = window.winfo_screenwidth()
g_screenheight = window.winfo_screenheight()
alignstr = '%dx%d+%d+%d' % (width, height, (g_screenwidth-width)/2, (g_screenheight-height)/2)
window.geometry(alignstr)
window.config(bg='white')
window.resizable(0,0)
window.mainloop()