当前位置:网站首页>First graphical interface
First graphical interface
2022-06-13 07:21:00 【Dongbei bird】
from tkinter import *
from tkinter import messagebox # This is a pop-up bag
root = Tk()
btn = Button(root)
btn['text'] = ' Click ' # Button name
btn.pack()
def son(e):
messagebox.showinfo(' Click click double click ') # The name of the pop-up window
print(' Double click follow ') # This is the background output
btn.bind("<Button-1>",son)
root.mainloop() # Formed by mainloop Method , Into the loop 


from tkinter import *
from tkinter import messagebox # This is a pop-up bag
root = Tk()
root.title(' My first program ')
root.geometry("500x300+100+200") # String form , Inside is x No *
btn = Button(root)
btn['text'] = ' Click ' # Button name
btn.pack()
def son(e):
messagebox.showinfo(' Click click double click ') # The name of the pop-up window
print(' Double click follow ') # This is the background output
btn.bind("<Button-1>",son)
root.mainloop() # Formed by mainloop Method , Into the loop

边栏推荐
- redis-6. Redis master-slave replication, cap, Paxos, cluster sharding cluster 01
- Application of DS18B20 temperature sensor based on FPGA
- Nfv basic overview
- Tidb statistics
- MySQL does not recommend setting the column default value to null. Why on earth is this
- C # using multithreading
- 汇编语言基础:寄存器和寻址方式
- First day of learning MySQL Basics
- MySQL query timeout control
- mysql中时间字段 比较时间大小
猜你喜欢

Ansible PlayBook的中清单变量优先级分析及清单变量如何分离总结

百货中心供应链管理系统

尝试使用RenderDoc查看UE的Shader代码

It's called the next generation monitoring system. Let's see how awesome it is

redis-7. Redis master-slave replication, cap, Paxos, cluster sharding cluster 02

基于ESP32CAM实现WebSocket服务器实时点灯

RT thread simulator lvgl control: switch switch button control

Priority analysis of list variables in ansible playbook and how to separate and summarize list variables

FSM state machine

Reflection of C # Foundation
随机推荐
TXT_ File encryption and compression
RT-Thread 模拟器 simulator LVGL控件:button 按钮事件
Nfv basic overview
A. Vacations (DP greed
. Net code to implement get request and post request
2022 - 06 - 12: dans un échiquier carré n * N, il y a n * n pièces, donc chaque pièce peut avoir exactement une pièce. Mais maintenant quelques pièces sont rassemblées sur une grille, par exemple: 2 0
nodejs文件模块fs
No configure file found when compiling PHP from source code
C语言:如何给全局变量起一个别名?
RT-Thread 模拟器 simulator LVGL控件:switch 开关按钮控件
Department store center supply chain management system
redis-3. Redis list, set, hash, sorted_ set、skiplist
学习Mysql基础第一天
Lightning data import
C Advanced Programming - features
Evolution in the digital age
[vivefocus uses the wavevr plug-in to obtain handle operation events]
Can flush open a stock account? Is it safe?
ISIS的vsys(虚拟系统)
Tidb implementation plan -- I