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']:
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