资源简介
python实现的日历
代码片段和文件信息
# -*- coding:UTF-8 -*-
from Tkinter import *
class Calendar(frame):
def __init__(self master):
frame.__init__(self master)
self.day_button = []
self.day_control = []
for weeks in range(len([‘周一‘ ‘周二‘ ‘周三‘ ‘周四‘ ‘周五‘ ‘周六‘ ‘周日‘])):
Label(self text=[‘周一‘ ‘周二‘ ‘周三‘ ‘周四‘ ‘周五‘ ‘周六‘ ‘周日‘][weeks]).grid(row=0 column=weeks)
for i in range(42):
self.day_control.append(StringVar())
self.day_button.append(Button(self textvariable=self.day_control[i]))
def display(self time):
for every_control in self.day_control:
every_control.set(‘‘)
day_tuple = [31 28 31 30 31 30 31 31 30 31 30 31]
year = int(time[:4])
month = int(time[5:7])
if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
day_tuple[1] += 1
co = first_day(time) - 1
ro = 1
order = co
for j in range(1 day_tuple[month -
- 上一篇:Python源代码:以web方式管理自己的常用链接
- 下一篇:微信防撤回.py
相关资源
- Python源代码:以web方式管理自己的常
- 基于Python实现的简易画气球
- python 井字棋 游戏源码
- 《Python从小白到大牛》源代码
- Python爬虫实战入门教程
- 机器学习numpy和pandas基础
- Python 3 Web Development. Beginners Guide
- Python爬取小说
- 网络爬虫(pachong_anjuke.py)
- python demo百度文库.py
- Python总结(精简).doc
- Supervised Learning with Python
- python实现一个简单的名片管理系统功
- Python源码剖析.pdf59505
- python语言实现的基于opencv的表针识别
- 基于Python的酒店管理系统
- 打砖块
- python数据结构
- python实现SGBM图像匹配算法
- python实现灰度直方图均衡化
- scrapy_qunar_one
- Python学习全系列教程永久可用
- python简明教程.chm
- 抽奖大转盘python的图形化界面
- 双边滤波器实验报告及代码python
- python +MYSQL+HTML实现21蛋糕网上商城
- Python-直播答题助手自动检测出题搜索
- OpenCV入门教程+OpenCV官方教程中文版
- Python 串口工具源码+.exe文件
- Python开发的全栈股票系统.zip
评论
共有 条评论