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:
@@ -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
|
0.1.6-4
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
@@ -719,6 +719,9 @@ class XML_Tree(wxTreeCtrl):
|
|||||||
if g.panel.IsModified():
|
if g.panel.IsModified():
|
||||||
self.Apply(xxx, item) # apply changes
|
self.Apply(xxx, item) # apply changes
|
||||||
treeObj = xxx.treeObject()
|
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',
|
if treeObj.className not in ['wxFrame', 'wxPanel', 'wxDialog',
|
||||||
'wxMenuBar', 'wxToolBar', 'wxWizard',
|
'wxMenuBar', 'wxToolBar', 'wxWizard',
|
||||||
'wxWizardPageSimple']:
|
'wxWizardPageSimple']:
|
||||||
@@ -810,7 +813,6 @@ class XML_Tree(wxTreeCtrl):
|
|||||||
next = elem.nextSibling
|
next = elem.nextSibling
|
||||||
encd = self.rootObj.params['encoding'].value()
|
encd = self.rootObj.params['encoding'].value()
|
||||||
if not encd: encd = None
|
if not encd: encd = None
|
||||||
self.dom.writexml(open('ttt.xrc','w'), encoding=encd)
|
|
||||||
self.dom.writexml(memFile, encoding=encd)
|
self.dom.writexml(memFile, encoding=encd)
|
||||||
# Put back in place
|
# Put back in place
|
||||||
# Remove temporary name or restore changed
|
# Remove temporary name or restore changed
|
||||||
|
Reference in New Issue
Block a user