pysimpleGui FilesBrowse函数原始说明

FilesBrowse: (button_text=’Browse’, target=(ThisRow, -1), file_types=((“ALL Files”, “.“), ), disabled=False, initial_folder=None, tooltip=None, size=(None, None), s=(None, None), auto_size_button=None, button_color=None, change_submits=False, enable_events=False, font=None, pad=None, key=None, k=None, files_delimiter=BROWSE_FILES_DELIMITER, metadata=None) -> Button

Allows browsing of multiple files. File list is returned as a single list with the delimiter defined using the files_delimiter parameter.

:param button_text: text in the button (Default value = ‘Browse’) # 按钮上显示的文本
:type button_text: (str)
:param target: key or (row,col) target for the button (Default value = (ThisRow, -1))
:param file_types: (Default value = ((“ALL Files”, “.“))) #打开文件类型
:type file_types: Tuple[(str, str), …]
:param disabled: set disable state for element (Default = False)
:type disabled: (bool)
:param initial_folder: starting path for folders and files
:type initial_folder: (str)
:param tooltip: text, that will appear when mouse hovers over the element
:type tooltip: (str)
:param size: (w,h) w=characters-wide, h=rows-high
:type size: (int, int)
:param s: Same as size parameter. It’s an alias. If EITHER of them are set, then the one that’s set will be used. If BOTH are set, size will be used
:type s: (int, int) | (None, None)
:param auto_size_button: True if button size is determined by button text
:type auto_size_button: (bool)
:param button_color: button color (foreground, background)
:type button_color: (str, str) or str
:param change_submits: If True, pressing Enter key submits window (Default = False)
:type change_submits: (bool)
:param enable_events: Turns on the element specific events.(Default = False)
:type enable_events: (bool)
:param font: specifies the font family, size, etc
:type font: str | Tuple[str, int]
:param pad: Amount of padding to put around element in pixels (left/right, top/bottom)
:type pad: (int, int) or ((int, int),(int,int)) or (int,(int,int)) or ((int, int),int)
:param key: key for uniquely identify this element (for window.FindElement)
:type key: str | int | tuple | object
:param k: Same as the Key. You can use either k or key. Which ever is set will be used.

:type k: str | int | tuple | object
:param files_delimiter: String to place between files when multiple files are selected. Normally a ;
:type files_delimiter: str
:param metadata: Anything you want to store along with this button
:type metadata: (Any)
:return: returns a button
:rtype: (Button)

人在中年,一事无成,瞎学

Original: https://www.cnblogs.com/jilingxf/p/15864080.html
Author: jilingxf
Title: pysimpleGui FilesBrowse函数原始说明

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/603472/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

  • 业务模型设计

    啊哦~你想找的内容离你而去了哦 内容不存在,可能为如下原因导致: ① 内容还在审核中 ② 内容以前存在,但是由于不符合新 的规定而被删除 ③ 内容地址错误 ④ 作者删除了内容。 可…

    Python 2023年9月15日
    042
  • NILMTK安装 艰辛之路

    纯小白,接触NILM才两三个月,一直停留在理论阶段,想着是时候试试实验了,于是开始下载NILMTK,没想到一下子花了我两周。。。也和我没经验有关,于是记录一下。因为头一次写博客,中…

    Python 2023年9月4日
    070
  • Vue组件介绍

    #基本示例 Vue组件的定义: component (组件)中的data ,必须是个函数,这是因为 组件是需要复用的,每次的复用,都相当于创建了一个新的实例. 这种情况跟 类(ja…

    Python 2023年6月12日
    079
  • 让Python程序自动玩数独游戏,秒变最强大脑

    Original: https://www.cnblogs.com/sn520/p/15736148.htmlAuthor: Python可乐呀Title: 让Python程序自动…

    Python 2023年5月24日
    063
  • 全网最简约的Anaconda+Python3.7安装教程Win10(百分百成功)

    全网最简约的Anaconda+Python3.7安装教程Win10(百分百成功) 🔱一、环境内容 🔱二、Anaconda 📍① Anaconda的下载(可跳过) 📍② Anacon…

    Python 2023年8月2日
    057
  • 【面试总结】测试管理面试问题

    博客园 :当前访问的博文已被密码保护 请输入阅读密码: Original: https://www.cnblogs.com/upstudy/p/16719899.htmlAutho…

    Python 2023年6月15日
    069
  • Python3 queue

    1、创建一个容器2、把1-10放入容器3、输出的时候先判断容器是否为空4、依次从容器中取出 用法: Queue.qsize() 返回队列的大小 Queue.empty() 如果队列…

    Python 2023年10月30日
    037
  • Python如何使用pip命令安装第三方模块

    为了解决各种各样复杂的实际问题,仅仅依靠 Python 内置模块和标准库是远远不够的。基于 Python 的开源特性,世界上的 Python 用户正在不断为越来越庞大的第三方代码库…

    Python 2023年9月21日
    026
  • 图解计算机内部的高速公路 —— 总线系统

    本文已收录到GitHub · AndroidFamily ,有 Android 进阶知识体系,欢迎 Star。技术和职场问题,请关注公众号 [彭旭锐] 进 Android 面试交流…

    Python 2023年10月15日
    057
  • Matplotlib系列(三):坐标轴变换及注释

    Matplotlib系列目录 文章目录 一、 简介 二、 思维导图 三、 坐标轴变换及注释 * 1. 坐标轴变换 – 1.1 极坐标系 1.2 对数坐标系 1.3 地图…

    Python 2023年9月3日
    060
  • 全网最牛自动化测试框架系列之pytest(5)-断言

    【文章末尾给大家留下了大量的福利】 前言 断言是完整的测试用例中不可或缺的因素,用例只有加入断言,将实际结果与预期结果进行比对,才能判断它的通过与否。 unittest 框架提供了…

    Python 2023年9月13日
    067
  • PyCharm在Win7系统中运行可能出现的问题及解决方法

    PyCharm 是由 JetBrains 设计开发的一款 Python IDE,支持 macOS、 Windows、 Linux 系统,功能强大,使用方便,在Python的程序设计…

    Python 2023年5月24日
    064
  • django–ORM表的多对一关系

    *多对一关系是什么 Django使用 django.db.models.ForeignKey定义多对一关系。 ForeignKey需要一个位置参数:与该模型关联的类 class I…

    Python 2023年5月23日
    068
  • django channels socket通信实现

    我们知道python有socket包可以直接实现socket通信。 但在使用django时,不太适用于socket的方式与前端交互,对此django有channels来很好的支持s…

    Python 2023年8月5日
    046
  • Python 封装SNMP调用接口

    PySNMP 是一个纯粹用Python实现的SNMP,用PySNMP的最抽象的API为One-line Applications,其中有两类API:同步的和非同步的,都在模块pys…

    Python 2023年5月25日
    068
  • 用python实现植物大战僵尸(游戏截图+动态演示+源码分享)

    大家好,我是梦执,对梦执着。希望能和大家共同进步! 下面给大家带来python实现植物大战僵尸的的源码分享,只含有冒险模式。 截图+动态演示+源码分享 游戏截图 动态演示 源码分享…

    Python 2023年9月17日
    045
亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球