Skip to main content

Web application GUI toolkit

Project description

A web application GUI toolkit.

Muntjac is a translation of Vaadin to the Python programming language. It is similar to GUI toolkits for desktop applications, such as PyQT, wxPython and PyGTK. However, it can be used to create dynamic, browser independent, web applications. There is no need to write HTML, Javascript or RPC code, just server-side Python.

Quick Start

Define a subclass of Application:

class HelloWorld(Application):

    def init(self):
        main = Window('Hello window')
        self.setMainWindow(main)

        main.addComponent(Label('Hello World!'))

Pass the application class to a servlet, wrap the resulting WSGI application in session middleware and serve:

wsgi_app = ApplicationServlet(HelloWorld, debug=True)

wsgi_app = paste.session.SessionMiddleware(wsgi_app)

httpd = wsgiref.simple_server.make_server('localhost', 8080, wsgi_app)
httpd.serve_forever()

Navigate your browser to http://localhost:8080/.

Changelog

1.0.0

  • First public release of Muntjac.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Muntjac, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size Muntjac-1.0.0-py2.7.egg (3.8 MB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size Muntjac-1.0.0.tar.gz (2.3 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page