The good news is I've now got a running Dabo installation.  Though 
that's (probably) also the bad news.  Prepare for a torrent of 
questions :-|

I get a crash when reload a saved form (created with the class 
designer) with a pageframe on it.

The simplest example I could make is the original form created by the 
class designer with a two page pageframe on it and a label on one 
page.

Have I done something daft?

I've successfully created a form with data fields on it *without* the 
pageframe, but I want a pageframe.  My first project is recreating a 
VFP codebook app...

I'm using the recent wxPython with wxWidgets 2.8.12 in it, I don't 
know if that's contributing at all.

Mark

(DaboEnv)[Mark@localhost daboide]$ ./ClassDesigner.py 
/home/Mark/Development/NHMagDatabase/NHMagApp/ui/TestCrash.cdxml 
2011-04-26 20:56:53 - ERROR - Problem adding to a page: no 
ClassDesigner information.
Traceback (most recent call last):
  File 
"./ClassDesigner.py", line 4415, in <module>
    clsDes = 
ClassDesigner(f)
  File "./ClassDesigner.py", line 244, in __init__
  
  frm = self.openClass(clsFile)
  File "./ClassDesigner.py", line 
744, in openClass
    obj = self.recreateChildren(frm.mainPanel, 
kids, None, False)
  File "./ClassDesigner.py", line 1247, in 
recreateChildren
    ret = self._recreateLayoutSizer()
  File 
"./ClassDesigner.py", line 874, in _recreateLayoutSizer
    
self.recreateChildren(parent, [kid], sz, True)
  File 
"./ClassDesigner.py", line 1252, in recreateChildren
    ret = 
self._recreateControl()
  File "./ClassDesigner.py", line 1023, in 
_recreateControl
    self.recreateChildren(obj, kids, None, False)
  
File "./ClassDesigner.py", line 1247, in recreateChildren
    ret = 
self._recreateLayoutSizer()
  File "./ClassDesigner.py", line 874, in 
_recreateLayoutSizer
    self.recreateChildren(parent, [kid], sz, 
True)
  File "./ClassDesigner.py", line 1252, in recreateChildren
    
ret = self._recreateControl()
  File "./ClassDesigner.py", line 1012, 
in _recreateControl
    self._recreateKidsForPageControl(obj, kids)
  
File "./ClassDesigner.py", line 1076, in _recreateKidsForPageControl
 
   self.recreateChildren(pg, grandkids, None, False)
  File 
"./ClassDesigner.py", line 1247, in recreateChildren
    ret = 
self._recreateLayoutSizer()
  File "./ClassDesigner.py", line 841, in 
_recreateLayoutSizer
    useBox=useBox, boxCaption=boxCaption)
  File 
"./ClassDesigner.py", line 3645, in addSizer
    obj.Sizer = 
newSizer
AttributeError: 'NoneType' object has no attribute 'Sizer'

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<dForm 
Caption="Dabo Class Designer" SaveRestorePosition="False" Top="123" 
Height="314" Width="456" designerClass="DesForm" Left="847">
    
<dSizer SlotCount="1" designerClass="LayoutSizer" 
Orientation="Vertical">
        <dPanel sizerInfo="{'HAlign': 'Left', 
'VAlign': 'Top'}" designerClass="controlMix">
            <dSizer 
SlotCount="1" designerClass="LayoutSizer" Orientation="Vertical">
    
            <dPageFrame sizerInfo="{'VAlign': 'Middle'}" 
designerClass="controlMix" PageCount="2">
                    <dPage 
Caption="Page 1" designerClass="controlMix">
                        
<dSizer SlotCount="1" designerClass="LayoutSizer" 
Orientation="Vertical">
                            <dLabel 
Caption="Label" sizerInfo="{}" designerClass="controlMix"></dLabel>
  
                      </dSizer>
                    </dPage>
         
           <dPage Caption="Page 2" designerClass="controlMix" 
Name="dPage1">
                        <dSizer SlotCount="1" 
designerClass="LayoutSizer" Orientation="Vertical">
                  
          <dPanel sizerInfo="{'BorderSides': ['All'], 'HAlign': 
'Left', 'VAlign': 'Top', 'Border': 0}" 
designerClass="LayoutPanel"></dPanel>
                        
</dSizer>
                    </dPage>
                </dPageFrame>
 
          


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to