import pyautogui as pg
b = pg.alert(text='hahh',title='test',button='ok')
print(b)
b1 = pg.confirm(text='testing',title='HAHHH',buttons=['ok','cancel'])
print(b1)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200508143239192.png)
'''消息弹窗可以输入文字'''
b2 = pg.prompt(text='testing',title='HAHHH',default='')
print(b2)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200508144030502.png)
b3 = pg.prompt(text='testing',title='HAHHH',default='dd')
print(b3)
![在这里插入图片描述](https://img-blog.csdnimg.cn/2020050814404787.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDUxNzg5MQ==,size_16,color_FFFFFF,t_70)
'''密码框'''
b4 = pg.password(text='testing',title='HAHHH',default='',mask='')
b5 = pg.password(text='testing',title='HAHHH',default='',mask='*')
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200508144623773.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDUxNzg5MQ==,size_16,color_FFFFFF,t_70)