1 Star 6 Fork 5

cheney/tkinter界面展示

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
win.py 930 Bytes
一键复制 编辑 原始数据 按行查看 历史
cheney 提交于 2021-08-05 00:34 . Initial commit
import tkinter as tk
import logging
import logg
logger_win = logging.getLogger('Tk_widgets_sample.win')
class Win(object):
def __init__(self):
win_name = 'Tk Widgets Sample'
win_size = '370x200'
self.win = tk.Tk()
self.win.title(win_name)
self.win.geometry(win_size)
@property
def get_win(self):
return self.win
def check_configure(self):
"""
Get configure keys and arguments
:return: keys and args
"""
# save data
configure_resorce = {}
# seperation
keys = self.win.keys()
for key in keys:
args = self.win.cget(key)
configure_resorce[key] = args
logger_win.info('key: {}, args: {}'.format(key, args))
return configure_resorce
def run(self):
"""
Run mainloop
:return: None
"""
self.win.mainloop()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/cheneykids/tkinter-interface-display.git
git@gitee.com:cheneykids/tkinter-interface-display.git
cheneykids
tkinter-interface-display
tkinter界面展示
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385