当前位置: 首页 > news >正文

做素材网站赚钱吗wordpress悬浮电话插件

做素材网站赚钱吗,wordpress悬浮电话插件,今天时事新闻,wordpress 媒体库 最大下一篇#xff1a; 本项目将分段设计“图书管理登录UI界面”的用户登录、用户注册、用户账号找回等。主要围绕GUI标准库tkinter、以及类的继承#xff08;重点#xff09;来设计本项目。 首先新建一个文件夹命名为“图书管理系统项目”#xff0c;并在其目录下新建文件夹…下一篇 本项目将分段设计“图书管理登录UI界面”的用户登录、用户注册、用户账号找回等。主要围绕GUI标准库tkinter、以及类的继承重点来设计本项目。 首先新建一个文件夹命名为“图书管理系统项目”并在其目录下新建文件夹code、photo、user_data。然后在code目录下新建“登录UI.py”再然后把图片放在photo目录下如下图 注意此时的窗口组件并未绑定触发事件所以按键无法触发。 运行结果 登录UI.py 代码示例 登录UI 模块 # 通配符 * __all__ [LoginUI]import tkinter as tk from tkinter import ttkclass LoginUI(tk.Tk):继承tk.Tk创建登录UIdef __init__(self):构造方法# 调用tk.Tk的构造方法super().__init__()self.width self.winfo_screenwidth() # 窗口宽初始位置为屏幕宽度位置显示self.height self.winfo_screenheight() # 窗口高初始位置为屏幕高度位置显示# 设计自己项目的UIself.title(图书管理登录界面) # 标题self.geometry(f610x406{self.width//4}{self.height//8}) # 窗口像素大小self.resizable(0, 0) # 窗口大小禁止调节# 窗口背景图self.backgroundPhoto tk.PhotoImage(file..\\photo\\用户登录背景.png)self.backgroundButton ttk.Button(self, imageself.backgroundPhoto)self.backgroundButton.pack()# 系统名self.titleLabel tk.Label(self, text图 书 管 理 系 统, font(Tahoma, 30, bold))self.titleLabel.place(x118, y40)# 输入格式错误提示self.hintLabel tk.Label(self, text欢迎使用【图书管理系统】)self.hintLabel.pack(sidetk.BOTTOM, filltk.BOTH)# 用户名tk.Label(self, text用户名).place(x170, y160)# 输入用户名self.userName tk.StringVar()self.userEntry ttk.Entry(self, textvariableself.userName, width22)self.userEntry.place(x223, y161)# 随机用户名self.randomPhoto tk.PhotoImage(file..\\photo\\随机用户名.png)self.randomButton tk.Button(self, imageself.randomPhoto, relieftk.FLAT)self.randomButton.place(x358, y162)# 密码tk.Label(self, text密 码).place(x170, y200)# 输入密码self.password tk.StringVar()self.passwordEntry ttk.Entry(self, textvariableself.password, width22)self.passwordEntry.place(x223, y201)# 显示/隐藏密码self.showOrConcealCount 0self.showPhoto tk.PhotoImage(file..\\photo\\密码显示.png)self.concealPhoto tk.PhotoImage(file..\\photo\\密码隐藏.png)self.showOrConcealButton tk.Button(self, imageself.showPhoto, relieftk.FLAT)self.showOrConcealButton.place(x358, y205)# 验证码tk.Label(self, text验证码).place(x170, y244)# 输入验证码self.inputVerifyCode tk.StringVar()self.verifyEntry ttk.Entry(self, textvariableself.inputVerifyCode, width15)self.verifyEntry.place(x223, y244)# 随机验证码self.showVerifyCode tk.StringVar(value获取验证码)self.verifyButton tk.Button(self, textvariableself.showVerifyCode, reliefflat, width8)self.verifyButton.place(x350, y240)# 刷新验证码self.updatePhoto tk.PhotoImage(file..\\photo\\验证码更新.png)self.updateButton tk.Button(self, imageself.updatePhoto, reliefflat)self.updateButton.place(x310, y245)# 注册self.registerButton ttk.Button(self, text注册, width4)self.registerButton.place(x395, y159)# 找回self.retrieveButton ttk.Button(self, text找回, width4)self.retrieveButton.place(x395, y199)# 登录self.loginButton ttk.Button(self, text登录)self.loginButton.place(x200, y300)# 退出ttk.Button(self, text退出, commandself.destroy).place(x310, y300)# 代码测试 if __name__ __main__:ui LoginUI() # 对象实例化ui.mainloop() # 窗口主循环 else:print(f导入【{__name__}】模块) 作者周华 传作日期2023/12/10
http://www.yutouwan.com/news/332612/

相关文章:

  • 网站建设辶首选金手指十五建设一个企业网站要多少钱
  • 台州网站建设技术外包后台管理系统页面模板
  • 合肥网站运营丹灶网站制作
  • 公司如何建设一个网站接外贸单的平台
  • 做网站哪个地方需要钱HTML转WordPress主题
  • 网站建设列表网杭州建设局
  • 福清营销型网站建设方案网站建设会计分录
  • 住房和城乡建设部网站办事大厅里边国内永久免费crm系统app
  • 广告投放网站平台中铁建设门户网登录入口在哪
  • 海派虫网站推广软件如何自己设计一个网页
  • 网站建设快速便宜个人注册域名和公司注册域名区别
  • 学网站制作企业微网站怎么做
  • 敦煌网的网站推广方式全国工程信息网
  • 公司网站开发怎么做网站设置手机版
  • 睢宁做网站二级网站建设思路
  • 地方门户网站推广方法有那些wordpress 音乐主题
  • 以前在线做预算的网站thinkphp仿wordpress
  • 怎样做网站全屏代码广州越秀区租房信息网
  • 良乡网站建设公司绵阳网站建设哪家好
  • 广州网站建设公司好吗北京装修公司怎么选
  • 最好的手机资源网站网站做几个域名比较好
  • 凡科做的网站能被收录吗电商网站开发前景
  • 网站页面相似度检测上海网站建设服务站霸网络
  • 多个网站优化怎么做互联网加盟
  • 宁波网站建设 泊浮科技河源市seo推广
  • 京东网站是刘强冬自己做的吗无锡网站建设收费
  • 湛江专业官网建站在线课程设计
  • 携程网站开发wordpress第一篇文章
  • 免费下载建筑图纸的网站百度app下载安装官方免费下载
  • .net如何做网站wordpress调用jssdk接口