Re: [Tutor] wxPython shaped window
by Adam Cripps other posts by this author
Jun 26 2005 12:24AM messages near this date
Re: [Tutor] wxPython shaped window
|
[Tutor] MineSweeper
On 6/25/05, Adam Bark <adam.jtm30@[...].com> wrote:
> Thanks for the info Adam I just seem to be having a problem with the panel
> size it greys out nearly all the image. Ideally I would like to make the
> panel transparent but I can't work out how to do that.
>
>
> On 6/25/05, Adam Cripps <kabads@[...].com> wrote:
> > 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
Adam - how much code do you have? Why not post it either here or the
wxpython-users list (to which I'm also subscribed) and we can take a
look.
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
|