testing for top-level objects only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
96a9f4e8dd
commit
14653d3b83
@ -1,3 +1,9 @@
|
||||
0.1.6-5
|
||||
-------
|
||||
|
||||
Testing limited to top-level objects because of references
|
||||
problem until a nice solution is found.
|
||||
|
||||
0.1.6-4
|
||||
-------
|
||||
|
||||
|
@ -719,6 +719,9 @@ class XML_Tree(wxTreeCtrl):
|
||||
if g.panel.IsModified():
|
||||
self.Apply(xxx, item) # apply changes
|
||||
treeObj = xxx.treeObject()
|
||||
if self.GetItemParent(item) != self.root:
|
||||
wxLogMessage('Only top-level objects can be tested')
|
||||
return
|
||||
if treeObj.className not in ['wxFrame', 'wxPanel', 'wxDialog',
|
||||
'wxMenuBar', 'wxToolBar', 'wxWizard',
|
||||
'wxWizardPageSimple']:
|
||||
@ -810,7 +813,6 @@ class XML_Tree(wxTreeCtrl):
|
||||
next = elem.nextSibling
|
||||
encd = self.rootObj.params['encoding'].value()
|
||||
if not encd: encd = None
|
||||
self.dom.writexml(open('ttt.xrc','w'), encoding=encd)
|
||||
self.dom.writexml(memFile, encoding=encd)
|
||||
# Put back in place
|
||||
# Remove temporary name or restore changed
|
||||
|
Loading…
Reference in New Issue
Block a user