Pysimplegui 简明教程
PySimpleGUI Tutorial
PySimpleGui 是 Python 的开源、跨平台 GUI 库。它旨在为基于 Python 的 Tkinter、PySide 和 WxPython 工具包创建桌面 GUI 提供一个统一的 API。PySimpleGui 还提供了一个针对 Remi 的端口,该端口对于构建 Web GUI 非常有用。与直接使用 PySimpleGui 使用的库相比,PySimpleGui 可以让你更快地构建 GUI。
PySimpleGui is an open source, cross-platform GUI library for Python. It aims to provide a uniform API for creating desktop GUIs based on Python’s Tkinter, PySide and WxPython toolkits. PySimpleGUI also has a port for Remi which is useful for building GUIs for the web. PySimpleGui lets you build GUIs quicker than by directly using the libraries it uses.
Audience
本教程专为希望学习如何使用 PySimpleGUI 库构建跨平台桌面以及基于 Web 的 GUI 设计的 Python 开发者设计。
This tutorial is designed for Python developers who want to learn how to build cross-platform desktop as well as web based GUI designs using PySimpleGui library.
Prerequisites
在您继续之前,确保您了解 Python 中程序化和面向对象编程的基础知识。对于理解高级主题(如 PySimpleGui 与 Matplotlib 和 OpenCV 包的集成),这一点至关重要。
Before you proceed, make sure that you understand the basics of procedural and object-oriented programming in Python. For understanding the advanced topics such as integration of PySimpleGui with Matplotlib and OpenCV packages, their understanding is essential.