A python UI framework that enables cross-platform compatibility, embraces web technologies and python language features.
python setup.py install
The first glance:
from puithon import Window, RuntimeManager
class MyWindow(Window):
def page_uri(self):
return self.html_to_data_uri("""
<html>
<body>
<p>Hello PuiTHON</p>
</body>
</html>
""")
def on_before_close(self):
RuntimeManager.get_instance().shutdown()
RuntimeManager.get_instance().WindowManager.window_show(MyWindow())
RuntimeManager.get_instance().start()
See doc/Tutorial.md
for a walk-thru tutorial.
Also, check ./example
for some snippets.
todo
- Window Manager
- |-- Messaging
- |---- frontend data binding
- |---- messaging across windows
- Decoupled
views
, easy migrate from Platform Application -> Web Application or vice versa.
- Set Window size
- Unittests
-
Initiative: A framework for easy gluing HTML based frontend with Python backend, for desktop-based applications.
-
Phrase 2: Python encapsulated HTML view components for modular platform specific frontend development, provide decoupled view modules.
-
Phrase 3: A WYSIWYG editor for desktop GUI development.
v0.1.3
- Fix threads not exit on closing during starting-up
v0.1.2
- Add
context_menu
flag to allow enable/disable the browser right click menu. - Fix
.setValue()