以下是部分代码预览:
"""
最简数字时钟.py
用turtle模块制作的最简单的时钟,
本质就是tkinter制作。这是没有边框的。
附tkinter版。
"""
from turtle import *
from time import strftime
screen = Screen()
root = screen._root
root.resizable(0,0) # 固定大小
root.overrideredirect(1) # 移去边框
screen.title("最简时钟")
screen.bgcolor("black")
screen.tracer(0,0)
screen.setup(400,100)
t = Turtle(visible=False)
t.color("white")
pass
screen.mainloop()
# 下面是tkinter版
import tkinter
from time import strftime
root = tkinter.Tk()
root.title('时钟')
root.resizable(0,0)
以下代码省略......
如需要查看完整代码,请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)

