[Fwd: Re: [wxpython-users] wx.PopupControl]
Werner F. Bruhin
werner.bruhin at free.fr
Wed Sep 10 03:04:42 PDT 2008
-------- Original Message --------
Subject: Re: [wxpython-users] wx.PopupControl
Date: Tue, 12 Aug 2008 15:13:00 +0200
From: Werner F. Bruhin <werner.bruhin at free.fr>
Reply-To: wxpython-users at lists.wxwidgets.org
To: wxpython-users at lists.wxwidgets.org
References: <48A011A2.3000900 at free.fr> <48A09227.4040003 at alldunn.com>
Robin Dunn wrote:
...
>>
>> Am I doing something wrong or is this control just not liking sizers?
>
> The PopupControl class should have a DoGetBestSize method, that will =
> allow it to play nice with sizers. It should also set the initial =
> minsize of itself based on the minsize of the text and button widgets.
> I'll take a look at any patches that are submitted for this.
I had a go at this, it works for my case, but not sure if this is the =
right way to go about this.
Appreciate if someone with more know how about all this has a look at =
the patch, so that Robin does not waste his time on it.
PING:
Did anyone try this?
It does the trick for me, i.e. the popupctrl behaves when included in a siz=
er.
Would be nice if someone could check it and if it would make it into a futu=
re version.
Werner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: popupctlPatch.py
Type: text/x-python
Size: 1202 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20080=
910/5a1b9328/popupctlPatch.py
More information about the wxpython-users
mailing list