[wxPython-users] Expanding dialog only horizontal
Oswaldo Hernández
listas at soft-com.es
Thu Jan 25 12:32:59 PST 2007
David Woods escribió:
> See SetSizeHints(). If you set the minH and maxH values to the same thing,
> you can't change the height of your dialog. That's what you want, right?
>
Perfect :)
....
self.Layout()
w, h = self.GetSize()
self.SetSizeHints(w,h, maxH = h)
Thanks.
> David
>
>
>
>> Did you try frame.Fit()?
>>
>> That should resize your frame to fit snugly around your controls.
>>
>>
>> Or maybe I didn't understand what it is you want to do..
>>
>>
>> Oswaldo Hernández wrote:
>>
>>> Hello,
>>>
>>> I define a frame with sizers that only expand horizontal, but the
>>> dialog also expand vertical leaving a blank space under the widgets.
>>>
>>> How can make a dialog that only expand horizontal?
>>>
>>> Is the unique method bind EVT_SIZE and resize the dialog in
>> code when
>>> the user try to expand vertical?
>>>
>>> Thanks.
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
>> For additional commands, e-mail:
>> wxPython-users-help at lists.wxwidgets.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
>
--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************
More information about the wxpython-users
mailing list