好友
阅读权限10
听众
最后登录1970-1-1
|
如纸年华
发表于 2024-10-14 01:01
nuitka win10下编译的.exe 在win7下报错缺系统dll 不知道怎么解决 已转win7 py3.86
nuitka 不管win7还是win10 编译pywinauto模块 都是不报错但是.exe打不开 不知道怎么解决 计划转图色
win7下 pytharm只能用2019.3版本 这个版本没有汉化 已转vscode 计划win10写完win7编译
py3.8 win7 cryptography特定库为 pip install cryptography==41.0.2 -i https://pypi.tuna.tsinghua.edu.cn/simple/
py3.8 tk Treeview 控件内容或者背景变色 需要修复样式映射<不明白什么意思 ai怎么说的> 修改列子在最下边
# 修复样式映射
def 修复样式映射(选项):
return [元素 for 元素 in 样式.map('Treeview', query_opt=选项) if
元素[:2] != ('!disabled', '!selected')]
# 创建主窗口
root = tk.Tk()
root.title(软件名称)
root.geometry("1280x720")
# 创建样式
样式 = ttk.Style()
样式.map('Treeview',
foreground=修复样式映射('foreground'),
background=修复样式映射('background'))
# 创建 Treeview 控件
table = ttk.Treeview(root, columns=tuple(列名), show="headings")
table.heading("#0", text="行数")
|
免费评分
-
查看全部评分
|