当前位置:网站首页>First graphical interface (modified version)
First graphical interface (modified version)
2022-06-13 07:21:00 【Dongbei bird】
from tkinter import Tk
# Display window
my_win = Tk()
# title
my_win.title('ceshi')
# Set size , And center
width = 240
height = 500
scr_wid,scr_hei= my_win.maxsize() # The first is to get the size of the entire screen
print(scr_hei,scr_wid)
dx = "%dx%d+%d+%d"%(width,height,(scr_wid-width)/2,(scr_hei-height)/2)
my_win.geometry(dx)
# Set whether you can zoom
my_win.resizable(width=True,height=False)
my_win.mainloop()
边栏推荐
- Simple understanding of basic language of C language
- c#高級編程-特性篇
- c#高级编程-特性篇
- How worker threads in the thread pool are recycled
- No configure file found when compiling PHP from source code
- Number of detection cycles "142857“
- Postgraduate entrance examination English
- P6154 wandering (memory search
- 考研英语
- C#合并多个richtextbox内容时始终存在换行符的解决方法
猜你喜欢

Socket programming 2:io reuse (select & poll & epoll)

Make cer/pfx public and private key certificates and export CFCA application certificates

The biggest highlight of wwdc2022: metalfx

Simple understanding of basic language of C language

Xuanwu cloud technology passed the listing hearing: the performance fluctuated significantly, and chenyonghui and other three were the controlling shareholders

Tidb statistics

量化框架backtrader之一文讀懂Analyzer分析器

Normalizing y-axis in histograms in R ggplot to proportion

C#合并多个richtextbox内容时始终存在换行符的解决方法

FSM state machine
随机推荐
Sorting of numbers and strings
Deploy RDS service
Tidb execution plan -- II
RT thread simulator lvgl control: switch switch button control
Nfv basic overview
redis-4. Redis' message subscription, pipeline, transaction, modules, bloom filter, and cache LRU
量化框架backtrader之一文讀懂Analyzer分析器
Through the function seaborn cubehelix_ Palette build order palette
The management practice of leading enterprises has proved that what is the core of sustainable development of enterprises?
考研英语
Related operations under Oracle Database
Socket programming 2:io reuse (select & poll & epoll)
What does my financial product mean in clearing?
About database: pgadmin4 editing SQL window
RT-Thread 模拟器 simulator LVGL控件:button 按钮事件
ISIS的vsys(虚拟系统)
号称下一代监控系统 来看看它有多牛逼
How to solve the 404 problem
Priority analysis of list variables in ansible playbook and how to separate and summarize list variables
部署RDS服务