tests/traffic_lights/beremiz.xml
author |
Andrey Skvortsov <andrej.skvortzov@gmail.com> |
|
Fri, 10 Mar 2017 17:09:48 +0300 |
changeset 1661 |
78f28f40bc10 |
parent 1383 |
45935812f930
|
child 2231 |
7d87a0f98345 |
permissions |
-rw-r--r-- |
wrap Beremiz startup code into separate launcher class
this should make it easier to make customized version of Beremiz IDE.
It's easy to add own splash, change version, add/disable extensions
and many other things.
For example:
[----- MyBeremiz.py ------]
#!/usr/bin/env python
from BeremizIDELauncher import BeremizIDELauncher
class MyBeremizIDELauncher(BeremizIDELauncher):
def __init__(self):
BeremizIDELauncher.__init__(self)
self.splashPath = self.Bpath("", "splash.png")
def ShowSplashScreen(self):
# comment next line to disable splash entirely
BeremizIDELauncher.ShowSplashScreen(self)
# change version
import version
version.app_version = "3.141-rc52"
def LoadExtensions(self):
# add/modifine list of extensions
# in self.extensions
BeremizIDELauncher.LoadExtensions(self)
if __name__ == '__main__':
beremiz = MyBeremizIDELauncher()
beremiz.Start()
[-------------------------]
1383
|
1 |
<?xml version='1.0' encoding='utf-8'?>
|
|
2 |
<BeremizRoot URI_location="LOCAL://">
|
|
3 |
<TargetType/>
|
|
4 |
</BeremizRoot>
|