features.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Apr 2016 19:15:55 +0300
changeset 1481 5b294dcaae18
parent 944 52a17be9c4d1
child 1511 91538d0c242c
child 1909 bb883e063175
permissions -rw-r--r--
fix issue, then it wasn't possible to view FBD programs

the reason for that is possible wx-3.0-gtk2 bug that happens if
ALWAYS_SHOW_SB is set.

Traceback (most recent call last):
File "Beremiz.py", line 1045, in OnProjectTreeItemActivated
IDEFrame.OnProjectTreeItemActivated(self, event)
File "IDEFrame.py", line 1667, in OnProjectTreeItemActivated
self.EditProjectElement(item_infos["type"], item_infos["tagname"])
File "IDEFrame.py", line 1752, in EditProjectElement
new_window = Viewer(self.TabsOpened, tagname, self, self.Controler)
File "editors/Viewer.py", line 611, in __init__
EditorPanel.__init__(self, parent, tagname, window, controler, debug)
File "editors/EditorPanel.py", line 68, in __init__
self._init_ctrls(parent)
File "editors/EditorPanel.py", line 52, in _init_ctrls
self._init_Editor(self)
File "editors/Viewer.py", line 603, in _init_Editor
style=wx.HSCROLL | wx.VSCROLL | wx.ALWAYS_SHOW_SB)
File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_windows.py", line 296, in __init__
_windows_.ScrolledWindow_swiginit(self,_windows_.new_ScrolledWindow(*args, **kwargs))
PyAssertionError: C++ assertion "scrolled" failed at ../src/gtk/scrolwin.cpp(205) in DoShowScrollbars(): window must be created
784
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
     1
libraries = [
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 784
diff changeset
     2
    ('Native', 'NativeLib.NativeLibrary'),
784
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
     3
    ('Python', 'py_ext.PythonLibrary'),
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
     4
    ('SVGUI', 'svgui.SVGUILibrary')]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
     5
720
6be032177e2a refactoring
Edouard Tisserant
parents: 717
diff changeset
     6
catalog = [
721
ecf4d203c4d4 refactoring
Edouard Tisserant
parents: 720
diff changeset
     7
    ('canfestival', _('CANopen support'), _('Map located variables over CANopen'), 'canfestival.canfestival.RootClass'),
734
5c42cafaee15 Moved LPC sources to a separate project
Edouard Tisserant
parents: 731
diff changeset
     8
    ('c_ext', _('C extension'), _('Add C code accessing located variables synchronously'), 'c_ext.CFile'),
728
e0424e96e3fd refactoring - library support is not anymore attached to configtree nodes, but handles by project controller
Edouard Tisserant
parents: 721
diff changeset
     9
    ('py_ext', _('Python file'), _('Add Python code executed asynchronously'), 'py_ext.PythonFile'),
e0424e96e3fd refactoring - library support is not anymore attached to configtree nodes, but handles by project controller
Edouard Tisserant
parents: 721
diff changeset
    10
    ('wxglade_hmi', _('WxGlade GUI'), _('Add a simple WxGlade based GUI.'), 'wxglade_hmi.WxGladeHMI'),
e0424e96e3fd refactoring - library support is not anymore attached to configtree nodes, but handles by project controller
Edouard Tisserant
parents: 721
diff changeset
    11
    ('svgui', _('SVGUI'), _('Experimental web based HMI'), 'svgui.SVGUI')]
10
2aff8e8cd456 Plugin skeleton base - python package
etisserant
parents:
diff changeset
    12
784
a1d970365e41 Adding support for beremiz extensions to define custom file editors for project files
laurent
parents: 734
diff changeset
    13
file_editors = []