Skip to content

Module system

Vanissoft edited this page Dec 20, 2017 · 1 revision

Each module is a pair of .html and Brython .py files. It is initialized after their invokation from Navigation system.

Intro

A module is composed by .html, .py and related data in bitshares_data.py. wmain.py makes the association between button navigation.html, module.html and wmodule.py.

module.html contains the layout and the widgets with their correspondent ID to reference later in wmodule.py. wmodule.py is the Brython code that renders the module to life.

Scripting

After the load from Navigation system, it is invoked init from wmodule.py for bindings and an initial load of the data. Data requesting is made with Websockets calls that instructs main.py to enqueue orders. Each module has an incoming_data function that translates and render the data received.

Server side scripting

There is a process listening Websockets and sends the requested data. The code resides in bitshares_data.py.

Clone this wiki locally