From: [email protected] [mailto:[email protected]] On
Behalf Of Ed Leafe
Sent: Thursday, May 20, 2010 7:36 PM
To: Dabo Users list
Subject: Re: [dabo-users] Open a newform within the application frame (not
as new window)

On May 20, 2010, at 1:06 PM, Martinecz Miklós wrote:

> This time I have no error message and the child opens but not in the place
> of the main form as I would expect. (I placed the 'dabo.MDI = True' just
> under the 'import Dabo' line in the main.py file.)

        It should open up as a "window within a window". In other words,
your main form should be a big blank window, with your child forms
completely enclosed within that main form.

> You mentioned that this feature works only under Windows. So if I want my
> application to be 'cross-platform', may be, I will need to use another
> method to show up different forms in the same place (one-after-one of
> course).
> 
> Can you suggest a different way then the MDI?


        For an app to be cross-platform doesn't mean that it looks identical
on each platform; what it means is that the app behaves the way a user of
that platform would expect. I'm not sure what the effect you want is
designed to accomplish, but you can always position a form in its
afterInitAll() method: self.Position = (200, 120)

        Another option if you really need a series of forms in the same
place one after the other is to use a wizard by subclassing the Wizard class
in ui/dialogs/Wizard.py.


-- Ed Leafe

********************

Thanks for the options! I will think about which one would serve best my
goals.

Best regards,
Miklós

_______________________________________________
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/!~!uenerkvcmdkaaqacaaaaaaaaaaaaaaaaabgaaaaaaaaackgpanngp0urgxvyyklpm8kaaaaqaaaargux4a9ud02zs4w8z9qcngeaa...@upcmail.hu

Reply via email to