赞
踩
1.表格宽度填充整个窗口。
2.施工日期、检测日期输入方式为用鼠标选择,默认日期为当前日期
3.表格有添加删除功能,可以添加一行或者删除一行
4.将输入的内容写入Excel中
- #!/usr/bin/env python
- # encoding: utf-8
- """
- @author: 拾壹
- @software: PyCharm
- @file: 最终版.py
- @time: 2023/3/15 1:52
- """
- import openpyxl
- import tkinter as tk
- from tkcalendar import DateEntry
- class Table:
- def __init__(self, root, rows, columns):
- self.root = root
- self.rows = rows
- self.columns = columns
- self.table = [[tk.Entry() for j in range(columns)] for i in range(rows)]
- headers = ["序号", "楼号", "桩号", "桩长", "施工日期", "检测日期", "极限承载力", "最大加载量", "备注"]
- # 添加表头
- for j in range(co

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。