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

网站建设制作视频网站建设 快速

网站建设制作视频,网站建设 快速,怎样做一个企业的网站建站,家居行业网站建设本章内容主要是利用python制作一个简单的桌面倒计时程序#xff0c;包含开始、重置 、设置功能。 目录 一、效果演示 二、程序代码 一、效果演示 二、程序代码 #!/usr/bin/python # -*- coding: UTF-8 -*-author: Roc-xb import tkin… 本章内容主要是利用python制作一个简单的桌面倒计时程序包含开始、重置 、设置功能。 目录 一、效果演示 二、程序代码 一、效果演示 二、程序代码 #!/usr/bin/python # -*- coding: UTF-8 -*-author: Roc-xb import tkinter as tk from tkinter import simpledialog from tkinter import messageboxclass CountdownTimer:def __init__(self, root):self.root rootself.root.title(倒计时程序)self.root.geometry(450x300)self.countdown_value 60self.is_counting Falseself.canvas tk.Canvas(self.root, width200, height200, bgwhite)self.canvas.place(x20, y20)self.countdown_label tk.Label(self.root, text倒计时: 60s, font(Arial, 20))self.countdown_label.place(x250, y20)self.start_button tk.Button(self.root, text开始, commandself.start_countdown)self.start_button.place(x250, y70)self.reset_button tk.Button(self.root, text重置, commandself.reset_countdown)self.reset_button.place(x250, y120)self.set_button tk.Button(self.root, text设置, commandself.set_countdown)self.set_button.place(x250, y170)def start_countdown(self):if self.is_counting:returnself.is_counting Trueself.countdown()def countdown(self):if self.countdown_value 0 and self.is_counting is True:self.countdown_value - 1self.countdown_label.config(text倒计时: str(self.countdown_value) s)self.canvas.delete(all)self.canvas.create_rectangle(0, 200 - self.countdown_value * 2, 200, 300, fillgreen)self.root.after(1000, self.countdown)elif self.countdown_value 0 and self.is_counting is False:self.canvas.delete(all)self.is_counting Falsereturnelse:self.is_counting Falsemessagebox.showinfo(提示, 倒计时结束)def reset_countdown(self):self.is_counting Falseself.countdown_value 60self.countdown_label.config(text倒计时: str(self.countdown_value) s)self.canvas.delete(all)def set_countdown(self):if self.is_counting:returnvalue tk.simpledialog.askinteger(设置倒计时, 请输入倒计时时间秒, parentself.root)if value is not None:self.countdown_value valueself.countdown_label.config(text倒计时: str(self.countdown_value) s)self.canvas.delete(all)if __name__ __main__:root tk.Tk()app CountdownTimer(root)root.mainloop()
http://wiki.neutronadmin.com/news/202168/

相关文章:

  • qq恢复官方网站大连设计工作室
  • 免费网站如何注册苏州手机网站制作
  • 建设一个网站要多少费用软件商店下载最新版2022
  • 品牌网站建设 2蝌蚪小平昌县建设局网站
  • 网站开发需要的软件深圳画册设计推荐
  • 购物网站开发方案dedecms导购网站模板
  • 增城门户网站wordpress 登录 显示
  • 润才网站建设自己制作网页怎么制作的
  • 易语言如何做网站登录企业网站建设后期维护费用
  • 四川公司网站建设招标量化交易网站开发
  • 东莞建网站公司排名做公司网站图片算是商用吗
  • 农村建设捐款网站很多网站开发没有框架如何制作的
  • 莱芜网站优化是什么哪个网站可以做鞋鉴定
  • 学校网站的建设需求广州定制网站开发
  • 深圳网站设计九曲网站建设苏州房产网
  • 内江企业网站建设公司广州工商注册查询系统
  • 塑业东莞网站建设非织梦做的网站能仿吗
  • 网站开发要先买服务器吗wordpress忘记用户名密码
  • 企业网络规划和设计方案网站内容很少如何做seo
  • 东莞seo建站推广费用目前做外贸平台
  • 网站建设招标书组成自助建站的软件
  • 文案素材网站网站商品展示页怎么做的
  • 如何做响应式网站网站建设自学建站视频教程
  • 金溪县建设局网站php采集wordpress文章
  • 建设网站需要什么基础深圳物流公司排名
  • 怎么用wordpress做企业网站wordpress激活码充值
  • 网站设计说明书怎么写flash交互网站页面切换制作
  • 湖南网站建设mxtiawordpress模板 站长
  • 番禺网站建设优化免费交流网站建设
  • 公司集团网站开发网站必须做百度推广才能被别人搜到吗