On 02/03/2011 19:13, Werner F. Bruhin wrote:
> On 02/03/2011 15:41, Ed Leafe wrote:
> ...
>>      You are adding the objects to the form, but not to any sizer. I would 
>> rewrite the first example as:
>>
>> class MainForm(dabo.ui.dDockForm):
>>       def afterInit(self):
>>           self.Caption = "Hello wiztest"
>>           docTabs = self.Application.ui.WizDockTabs(self, Name="MainTabs1")
>>      self.Sizer.append1x(docTabs)
>>
> Much better, thanks, but not quit there, i.e. the WizDockTabs, don't
> expand when resizing the MainForm, beyond its original size.
Got it by adding things to self.CenterPanel, i.e.:

         docTabs1 = self.Application.ui.WizDockTabs(self.CenterPanel, 
Caption='first')
         docTabs2 = self.Application.ui.WizDockTabs(self.CenterPanel, 
Caption='second')

         self.CenterPanel.Sizer.append1x(docTabs1)
         self.CenterPanel.Sizer.append1x(docTabs2)

..
> P.S.
> I also see this warning:
> 2011-03-02 19:12:16 - ERROR - Unmanaged object added to a Dock Form:
> <WizDockTabs (baseclass dabo.ui.dPageFrame.dDockTabs, id:-215)>
> 2011-03-02 19:12:16 - ERROR - Unmanaged object added to a Dock Form:
> <WizDockTabs1 (baseclass dabo.ui.dPageFrame.dDockTabs, id:-222)>
>
They have gone away with the above change.
> and I see two StatusBar's without having explicitly added one.
Looks like this is an issue with Object Inspector, the two entries I see 
are actually the same, i.e. the id is the same if I do:
obj
<dStatusBar (baseclass dabo.ui.dStatusBar, id:-243)>
obj
<dStatusBar (baseclass dabo.ui.dStatusBar, id:-243)>

When using the Object Inspector I see this on closing:
2011-03-03 14:06:16 - ERROR - Unmanaged object added to a Dock Form: 
<dForm (baseclass dabo.ui.dForm, id:-256)>

Werner

_______________________________________________
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