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.
···
--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************
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.
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?
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@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org
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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************
Eli Golovinsky escribió:
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..
Sorry for my bad english.
dialog.SetSizeHints() is wat im looking for.
Thanks.
···
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@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
*****************************************
Oswaldo Hernández
oswaldo (@) soft-com (.) es
*****************************************