1 Star 0 Fork 0

逆羽/getProcessInfo

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
main.py 1.12 KB
Copy Edit Raw Blame History
逆羽 authored 2022-08-18 22:31 . commit
# encoding = utf-8
import win32api
import datetime
import tkinter
root = tkinter.Tk(className='长跑报告管理')
# root.title('长跑报告')
root.geometry('800x400+800+300')
cur_time = datetime.datetime.now()
now_time_hour = datetime.datetime.now().hour
now_time_min = datetime.datetime.now().minute
now_time_sec = datetime.datetime.now().second
print(cur_time)
print(now_time_hour, now_time_min, now_time_sec)
hour = tkinter.StringVar(value=now_time_hour)
minute = tkinter.StringVar(value=now_time_min)
secs = tkinter.StringVar(value=now_time_sec)
tkinter.Label(root, text='详细信息').pack()
tkinter.Entry(root, width=50).pack()
tkinter.Label(root, text=cur_time).pack()
tkinter.Entry(root, width=50).pack()
# interface.window_interface(root, hour, minute, secs)
root = tkinter.Tk(className='长跑报告管理')
root.geometry('800x400+800+300')
tkinter.Frame(root)
# f_fra.pack(padx=12, pady=6)
tkinter.Label(root, text='详细信息:').grid(row=0, column=0)
tkinter.Label(root, text=info).grid(row=0, column=1)
text = tkinter.Entry(root, width=20)
text.grid(row=1, column=1)
# win32api.MessageBox(0, hour, minute, secs)
root.mainloop()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Inverse_feather/getProcessInfo.git
git@gitee.com:Inverse_feather/getProcessInfo.git
Inverse_feather
getProcessInfo
getProcessInfo
main

Search