如何从treevi打印(纸质版本)

2024-04-26 13:36:37 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有办法找到树状图中的所有实体,更新其中一些实体并打印硬拷贝?我写了这一个,但不幸的是没有工作,如果有人知道所以请帮助我谢谢

def iprint():
    for child in tree.get_children ()
        entries = int(tree.item ( child )["values"])
        print ( entries )
        import subprocess
    subprocess.call( int(entries, "print" ))

Tags: in实体childtreeforgetdefint