-
Notifications
You must be signed in to change notification settings - Fork 4
Module system
Each module is a pair of .html and Brython .py files. It is initialized after their invokation from Navigation system.
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.
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.
There is a process listening Websockets and sends the requested data. The code resides in bitshares_data.py.