Being pure Python and cross platform, it should work anywhere where there's Python and a browser. To run apps in desktop-mode, we recommend having Firefox installed.
Flexx has a modular design, consisting of a few subpackages, which can also be used by themselves:
ui - the widgets
app - the event loop and server
react - reactive programming (how information flows through your program)
webruntime - to launch a runtime
Working code example::
from flexx import app, ui, react
self.count = 0
self.button = ui.Button(text='Click me', flex=0)
self.label = ui.Label(flex=1)
def _handle_click(self, down):
self.count += 1
self.label.text('clicked %i times' % self.count)
main = app.launch(Example)
Flexx is still very much a work in progress. Please don't go use it just yet for anything serious. The public API can change without notice. However, we're interested in feedback, so we invite you to play with it!
clone the repo
put the repo dir in your PYTHONPATH
python setup.py install
run the examples
There is an Amazon instance running some demos on http://220.127.116.11:8000/ (unless I turned it off for testing, etc.).