Clone this wiki locally
build manages the overall translation of individual components and creates a set of
.jsfiles that can be served up by a Web server.
- Dynamic and reusable UI components: programmers can use pre-designed classes to implement otherwise time-consuming dynamic behaviors, such as drag-and-drop or sophisticated visual tree structures.
- Simple RPC mechanism
- Browser history management, covering "Back", "Forward" with no hassle for the developer. AJAX applications typically break the "Go Back" button: use the History module to provide your application with History management.
- pyjs handles all cross-browser issues for the developer.
- Beginnings of support for using Google APIs in GWT applications (initially, support for Google Gears Database)
- pyjs is entirely Free Software.
A quick example to give you an idea of what it feels like working with pyjs:
from pyjamas.ui.RootPanel import RootPanel from pyjamas.ui.Label import Label l = Label('Hello pyjs') RootPanel().add(l)
./output folder containing all files you need to move to your webspace later. Of course you can test locally,
import pyjd # this is dummy in pyjs from pyjamas.ui.RootPanel import RootPanel from pyjamas.ui.Label import Label pyjd.setup('public/hello.html') l = Label('Hello pyjs') RootPanel().add(l) pyjd.run()
pyjd hello.py, or
python hello.py, to run the very same application native on Python, giving you a Python stack trace on errors. pyjs Desktop gives you much more control making testing and debugging
a piece of a cake. Note the
hello.html file referenced above: this is a container for your application generated by pyjs that you can adjust to your needs.
Ready for more? Let's get started!