本章内容主要是利用python制作一个简单的桌面倒计时程序,包含开始、重置 、设置功能。
目录
一、效果演示
二、程序代码
#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author: Roc-xb
"""
import tkinter as tk
from tkinter import simpledialog
from tkinter import messagebox
class CountdownTimer:
def __init__(self, root):
self.root = root
self.root.title("倒计时程序")
self.root.geometry("450x300")
self.countdown_value = 60
self.is_counting