Hi,
just tried xrced and had to change a few things to make it work.
* Errors with wrong number of lines/columns specifed in
AttributePanel.py and params.py with GridSizers and FlexGridSizers
(only 2 files with these sizers as far as I can tell).
These will appear as
wx._core.PyAssertionError: C++ assertion "Assert failure" failed at
..\..\src\common\sizer.cpp(1352) in wxGridSizer::Insert(): too many
items (18 > 1*17) in grid sizer (maybe you should omit the number of
either rows or columns?)
In params.py, StylePanel
- sizer = wx.GridSizer(len(genericStyles), 1, 1, 5)
+ sizer = wx.GridSizer(0, 1, 1, 5)
- sizer = wx.GridSizer(len(styles), 1, 1, 5)
+ sizer = wx.GridSizer(0, 1, 1, 5)
Changed AttributePanel.py and params.py (see attached)
class Panel:
- sizer = wx.FlexGridSizer(2, 2, 1, 5)
+ sizer = wx.FlexGridSizer(0, 2, 1, 5)
class AttributePanel :
- sizer = wx.FlexGridSizer(len(attributes), 2, 0, 0)
+ sizer = wx.FlexGridSizer(0, 2, 0, 0)
class CodePanel :
- sizer = wx.GridSizer(len(events), 1, 0, 5)
+ sizer = wx.GridSizer(0, 1, 0, 5)
# Additional comboboxes
- self.eventSizer = wx.FlexGridSizer(1, 2, 0, 0)
+ self.eventSizer = wx.FlexGridSizer(0, 2, 0, 0)
* sets.Set() Deprecation warning in component.py - Found a solution in
and used (see attached)
+ try:
+ set
+ except NameError:
+ from sets import Set as se
instead of
- from sets import Set
Also in canHaveChild() used
- groups = Set(component.groups)
+ groups = set(component.groups)
* empty / new project is flagged as modified and will need to be saved
before a file can be opened.
in presenter.py, setApplied
- self.setModified(setDirty=False) # toggle global state
+ self.setModified(False,setDirty=False) # toggle global state
* Intermittent / not sure. Could be when opening two files in a row?
Will try and generate a test case for that.
Traceback (most recent call last):
File "c:\python26\lib\site-packages\wx-2.9.0-msw-unicode\wx\_core.py",
line 16223, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "c:\python26\lib\site-packages\wx-2.9.0-msw-unicode\wx\tools\XRCed\presenter.py",
line 139, in setData
TRACE('setData: %s', node.getAttribute('class'))
AttributeError: 'NoneType' object has no attribute 'getAttribute'
That's it for now.
Regards,
Egor
component.py (29.5 KB)
presenter.py (27.4 KB)
AttributePanel.py (16.7 KB)
params.py (39.8 KB)
···
On Fri, Jan 15, 2010 at 1:48 AM, Robin Dunn <robin@alldunn.com> wrote:
Hi All,
I've made another test build which includes fixes for most of the issues
that were reported with the previous build.--
Robin Dunn
Software Craftsman
http://wxPython.org--
To unsubscribe, send email to wxPython-dev+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-dev?hl=en