您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. Python3 Tkinter选择路径功能的实现方法

  2. 效果基于Python3。 在自己写小工具的时候因为这个功能纠结了一会儿,这里写个小例子,供有需要的参考。 小例子,就是点击按钮打开路径选择窗口,选择后把值传给Entry输出。 效果预览 这是选择前: 选择: 选择后: 代码 很基础的写法。 from tkinter import * from tkinter.filedialog import askdirectory def selectPath(): path_ = askdirectory() path.set(path_)
  3. 所属分类:其它

    • 发布日期:2021-01-21
    • 文件大小:154624
    • 提供者:weixin_38565801