https://github.com/zbigg/wxpython-react
wxPython driven by React
https://github.com/zbigg/wxpython-react
react wxpython
Last synced: 11 months ago
JSON representation
wxPython driven by React
- Host: GitHub
- URL: https://github.com/zbigg/wxpython-react
- Owner: zbigg
- Created: 2017-09-18T16:47:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-24T09:18:38.000Z (about 8 years ago)
- Last Synced: 2025-02-10T05:24:05.776Z (about 1 year ago)
- Topics: react, wxpython
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React wxPython
This is very experimental attempt to check if React approach is portable to
different programming environment:
- other language *Python*
- native *desktop*
## Current status:
- naive, always-re-render-everything render and update loop works for wx.Frame, wx.Panel, wx.StaticText and wx.Button
- API similar to `React.js`
- createComponent
- stateful component with `setState()` and typical callbacks
- functional components
- no context yet, but easy to add
- no JSX counterpart or even idea how to approach this
## Running sample:
```
apt-get install python-wxgtk3.0
python sample.py
```
Have fun.