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

飞翔时代 网站建设做ic用什么网站

飞翔时代 网站建设,做ic用什么网站,网站设计的公司设计,深圳做网站的公本章内容主要是利用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://www.yutouwan.com/news/501063/

相关文章:

  • 借款网站模板无极分期网站
  • 网站主机要怎么做镇江房地产网站建设
  • 网站建设+用ftp上传文件网站定制
  • 论坛网站开发开题报告开发工程师的岗位要求
  • 做网站建设的电话销售渭南网站建设公司
  • 怎么做区块链网站电子商务网站主要功能
  • 网站收录了但是搜索不到大庆小程序制作
  • 学校网站建设费用大淘客平台怎么做分销网站
  • wordpress建站服务湖南网站建设价格费用
  • 增塑剂网站建设徐州网站制作
  • 当前网站开发用什么软件网址大全怎么删除
  • 什么网站做禽苗好的网站设计开发
  • 成都营销型网站建设熊掌号化妆品网站下载
  • 网站详细报价荥阳seo推广
  • 网站怎么做IPv6南京网站设计哪家好
  • 网站建设优惠中平面设计速成培训机构
  • 北京网站托管卓越高职院建设网站
  • 公众号免费模板网站汕头手机端建站模板
  • 旅游网站开发流程好的h5制作网站模板下载
  • 比较不同类型网站栏目设置区别做移动端网站软件开发
  • 搜中文找不到公司网站是怎么回事是网站推广的案例
  • jquery 素材的网站软件外包公司如何接单
  • 成都装修网站制作价格目录在标题后 wordpress
  • 有口碑的企业网站建设即墨做网站公司
  • 做民宿要给网站多少钱怎么去推广自己的公司
  • 临清设计网站建设网站能自学吗
  • 产品销售网站模板wordpress的页面标题
  • 哈尔滨建设工程信息网站网络公司名字大全寓意
  • 网站虚拟空间作用平台推广引流
  • 湘潭网站建设网站推广东莞市朝阳企讯通