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 >> python-tutor
python-tutor
Re: [Tutor] wxPython shaped window
by Adam Cripps other posts by this author
Jun 25 2005 1:02PM messages near this date
Re: [Tutor] wxPython shaped window | Re: [Tutor] wxPython shaped window
On 6/25/05, Adam Bark <adam.jtm30@[...].com>  wrote:
>  Is it possible to put controls into a shaped window in wxPython. I have
>  tried putting a button on the demo and it becomes the exact size and shape
>  of the window. Also when I tried to bind it to an action it wouldn't even
>  start.
>   
>   Adam
>   

I'm working through something similar myself at the moment. 

Try adding a wx.Panel to the frame and then the button to the panel.
You can position them through pos parameter, but it should default to
the top left of the panel and have a good size if you use
button.SetSize(button.GetBestSize())

HTH

Adam
-- 
http://www.monkeez.org
PGP key: 0x7111B833
_______________________________________________
Tutor maillist  -  Tutor@[...].org
http://mail.python.org/mailman/listinfo/tutor
Thread:
Adam Bark
Danny Yoo
Adam Cripps
Adam Bark
Adam Cripps

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved