没有合适的资源?快使用搜索试试~ 我知道了~
代码11.docx
需积分: 0 0 下载量 88 浏览量
2024-05-27
14:41:55
上传
评论
收藏 19KB DOCX 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/89364106/0001-3e93c60fd4f35d51ba81e52fca3f968d_thumbnail-wide.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
2页
代码11.docx
资源推荐
资源详情
资源评论
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/release/download_crawler_static/89364106/bg1.jpg)
import tkinter
import tkinter.messagebox
import sqlite3
#
数据库的链接
conn=sqlite3.connect('userinfo.db')
cur=conn.cursor()
#cur.execute('CREATE TABLE info(name test primary key, pwd test)')
#
创建应用程序窗口
root1 = tkinter.Tk()
#
定义窗口大
root1['height'] = 140
root1['width'] = 200
#
在窗口上创建标签组件
labelName = tkinter.Label(root1,
text='User Name:',
justify=tkinter.RIGHT,
anchor = 'e',
width=80)
labelName.place(x=10, y=5, width=80, height=20)
#
创建字符串变量和文本框组件,同时设置关联的变量
varName=tkinter.StringVar(root1,value='')
entryName = tkinter.Entry(root1,
width=80,
textvariable=varName)
entryName.place(x=100, y=5, width=80, height=20)
labelPwd = tkinter.Label(root1,
text='User Pwd:',
justify=tkinter.RIGHT,
anchor = 'e',
width=80)
labelPwd.place(x=10, y=30, width=80, height=20)
#
创建密码文本框
varPwd = tkinter.StringVar(root1, value='')
entryPwd = tkinter.Entry(root1,
show='*',
width=80,
textvariable=varPwd)
entryPwd.place(x=100, y=30, width=80, height=20)
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
2401_84372049
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)