PySimpleGUIWx

since 2021-10-17

https://github.com/PySimpleGUI/PySimpleGUI/blob/master/readme.ja.md

ためした環境

Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
pip install PySimpleGUIWx
Collecting PySimpleGUIWx
  Downloading PySimpleGUIWx-0.17.2-py3-none-any.whl (71 kB)
     |████████████████████████████████| 71 kB 909 kB/s
Collecting WxPython
  Downloading wxPython-4.1.1-cp39-cp39-win_amd64.whl (18.1 MB)
     |████████████████████████████████| 18.1 MB 1.1 MB/s
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pillow
  Downloading Pillow-8.4.0-cp39-cp39-win_amd64.whl (3.2 MB)
     |████████████████████████████████| 3.2 MB 1.6 MB/s
Collecting numpy
  Downloading numpy-1.21.2-cp39-cp39-win_amd64.whl (14.0 MB)
     |████████████████████████████████| 14.0 MB 1.3 MB/s
Installing collected packages: six, pillow, numpy, WxPython, PySimpleGUIWx
Successfully installed PySimpleGUIWx-0.17.2 WxPython-4.1.1 numpy-1.21.2 pillow-8.4.0 six-1.16.0

以下は公式サイトの例のまま。最初の import モジュール名だけ違う

import PySimpleGUIWx as sg
 
layout = [[sg.Text("お名前は何ですか?")], [sg.Input()], [sg.Button("はい")]]
window = sg.Window("ウィンドウタイトル", layout)
event, values = window.read()
print("ハロー ", values[0], "PySimpleGUIを試してくれてありがとう!")
window.close()

ちゃんとスクリーンリーダー (NVDA) で操作できるGUIになっている。

pysimpleguiwx.txt · 最終更新: 2021/10/17 12:51 by Takuya Nishimoto
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0