ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
Re: [wxpython-users] Re: wx.Panel doubts...
by Jorgen Bodde other posts by this author
May 9 2008 6:52AM messages near this date
Re: Re: [wxpython-users] Re: wx.Panel doubts... | Re: [wxpython-users] Re: wx.Panel doubts...
> > 1: How to put a Sizer exactly in the Middle of the panel? Even if the screen is resized?

Use a VERTICAL box sizer and in there a HORIZONTAL one. The VERTICAL
should have the property set that it is alligned CENTRE and the
horizontal box sizer too.

                <flag> wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
                <border> 5</border>
                <option> 1</option>
                <object class="wxBoxSizer"> 
                    <orient> wxHORIZONTAL</orient>
                    <object class="sizeritem"> 
                        <flag> wxALIGN_CENTER_VERTICAL|wxALL</flag>
                        <border> 5</border>
                        <object class="wxStaticText" name="wxID_STATIC"> 
                            <label> This text is centered</label>
                        </object> 
                    </object> 
                </object> 

 > > 2: Can anyone send me a simple anchor example? cuz I cant
understand nothing of the demo =(,

Why would you like to use them? Sizers do the trick just fine

> > 3: Why when I dont tell the constructor of the panel its size, the default sizer never sh
ows everything from the panel?

Depends if the minimal size or getbest size of the control reports this properly

> > 4: How to change panels in the same frame?

Either use wx.Wizard which is created for the purpose, or recreate the
panel. First detach the old one, destroy it, then attach the new one
and relayout the window

- Jorgen
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
David Anderson
David Anderson
Mark Erbaugh
Kalle Haglunds
python
David Anderson
Mike Driscoll
Jorgen Bodde
David Anderson
Robin Dunn
David Anderson
Robin Dunn
C M

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved