https://github.com/tsnsoft/wxpython_micro
Простейший пример оконной программы на wxPython c wxWidgets
https://github.com/tsnsoft/wxpython_micro
demo python wxpython wxwidgets
Last synced: 10 months ago
JSON representation
Простейший пример оконной программы на wxPython c wxWidgets
- Host: GitHub
- URL: https://github.com/tsnsoft/wxpython_micro
- Owner: tsnsoft
- License: lgpl-3.0
- Created: 2020-11-09T12:34:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-09T12:34:36.000Z (over 5 years ago)
- Last Synced: 2025-03-29T18:41:32.318Z (11 months ago)
- Topics: demo, python, wxpython, wxwidgets
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wxPython_micro
Простейший пример оконной программы на wxPython c wxWidgets

```
#!/usr/bin/env python3
# coding=utf-8
import wx
app = wx.App()
window = wx.Frame(None, title = "wxPython Frame", size = (300,200))
panel = wx.Panel(window)
label = wx.StaticText(panel, label = "Hello World", pos = (100,50))
window.Show(True)
app.MainLoop()
```
## https://wxpython.org
Установка:
```
pip3 install -U wxPython
```
или так:
```
sudo apt-get install python-wxgtk3.0
```
---
### Как сделать портативную программу в виде одного исполняемого файла:
```
pip3 install pyinstaller
pyinstaller --onefile --windowed start.py
```