Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 1.66 KB

README.md

File metadata and controls

79 lines (50 loc) · 1.66 KB

puithon (Python UI Framework)

A python UI framework that enables cross-platform compatibility, embraces web technologies and python language features.

Install

python setup.py install

Usage

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.


Features

todo

  • Window Manager
  • |-- Messaging
  • |---- frontend data binding
  • |---- messaging across windows

Benefits

  • Decoupled views, easy migrate from Platform Application -> Web Application or vice versa.

Todo

  • Set Window size
  • Unittests

Roadmap

  • 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.

Changelog:

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()