tests/wxGlade/HMIFrame@wxglade_hmi/hmi.wxg
author |
Andrey Skvortsov <andrej.skvortzov@gmail.com> |
|
Mon, 18 Apr 2016 19:15:55 +0300 |
changeset 1481 |
5b294dcaae18 |
parent 728 |
e0424e96e3fd
|
child 1690 |
cfac9d1c3571 |
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
<?xml version="1.0"?>
<!-- generated by wxGlade 0.6.3 on Fri Aug 7 18:16:44 2009 -->
<application path="" name="" class="" option="0" language="python" top_window="HMIFrame" encoding="UTF-8" use_gettext="0" overwrite="0" use_new_namespace="1" for_version="2.8" is_template="0">
<object class="Class_HMIFrame" name="HMIFrame" base="EditFrame">
<style>wxDEFAULT_FRAME_STYLE</style>
<title>HMIFrame</title>
<object class="wxBoxSizer" name="sizer_1" base="EditBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="wxSpinCtrl" name="spin_ctrl_1" base="EditSpinCtrl">
<range>0, 10000</range>
</object>
</object>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="wxCheckBox" name="checkbox_1" base="EditCheckBox">
<label>checkbox_1</label>
</object>
</object>
<object class="sizeritem">
<border>0</border>
<option>0</option>
<object class="wxStaticText" name="label_1" base="EditStaticText">
<attribute>1</attribute>
<label>GUI modifiée !</label>
</object>
</object>
</object>
</object>
</application>