johnf escreveu:
> On Friday 27 March 2009 08:31:07 am Pedro Vale de Gato wrote:
>   
>> My code simply wraps wx.SashLayoutWindow, maybe it is already
>> cross-platform...sorry... i really didn't had the time to test it in
>> linux or mac
>>     
>
> Send it to me.  Maybe it will work.  If works on Linux I'll forward it to 
> Paul 
> and Ed (both use Apple's)
>   
Just patch your local dabo tree with:
http://trac.dabodev.com/attachment/ticket/1137/dMdiLayoutPanel.diff

To create a test app simply run Appwizard to create a datanav app, then 
add this to FormMain.py

def afterInit(self):
        # right Mdi panel
        right = dMdiLayoutPanel(self, Size=(150,50), Resizable=True, 
Alignment="Right", Orientation="Vertical")

        lbl_stats = dabo.ui.dLabel(right, Caption="Test",
                    FontBold=True, AutoResize=False, 
BackColor=(200,200,200), FontSize=10)

        right.Sizer.append(lbl_stats, "expand", 0)

In the app main file comment the if in:

#if sys.platform[:3] == "win":
    dabo.settings.MDI = True

To force the use of MDI mode on linux...

Pedro

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

Reply via email to