What is the best replacement for this when one uses sized_controls?
Currently just adding an empty wx.StaticText but seems a bit strange.
Werner
What is the best replacement for this when one uses sized_controls?
Currently just adding an empty wx.StaticText but seems a bit strange.
Werner
? Something like
spacer = [width, height]
sizer.Add(spacer, . . . . )
On 26/09/2011 15:39, werner wrote:
What is the best replacement for this when one uses sized_controls?
Currently just adding an empty wx.StaticText but seems a bit strange.
Werner
--
Regards
David Hughes
Forestfield Software
Hi Werner,
I tend to create an empty sc.SizedPanel in this case. You can, of course, access the actual sizer with parent.Sizer and call its AddSpacer method if you want to as well.
Regards,
Kevin
On Sep 26, 2011, at 7:39 AM, werner wrote:
What is the best replacement for this when one uses sized_controls?
Currently just adding an empty wx.StaticText but seems a bit strange.
Werner
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
Good evening Kevin,
Hi Werner,
I tend to create an empty sc.SizedPanel in this case. You can, of course, access the actual sizer with parent.Sizer and call its AddSpacer method if you want to as well.
AddSpacer doesn't "survive" a call to SetSizerType, also I call that mostly before adding child controls.
Will stick with a panel.
Thanks
Werner
On 09/26/2011 05:10 PM, Kevin Ollivier wrote:
Regards,
Kevin
On Sep 26, 2011, at 7:39 AM, werner wrote:
What is the best replacement for this when one uses sized_controls?
Currently just adding an empty wx.StaticText but seems a bit strange.
Werner
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
Hi David,
What is the best replacement for this when one uses sized_controls?
Currently just adding an empty wx.StaticText but seems a bit strange.
Werner
? Something like
spacer = [width, height]
sizer.Add(spacer, . . . . )
I am using the wx.lib.sized_controls (panel, diag, frame) and on these you don't add to the sizer yourself, the sized_control is doing all that for you. Just recently started to using them and I really like them and with them I move away from design panels etc in a UI designer (Boa or wxGlade or ...) and it is so easy to just "run" the panel or whatever and shift the code creating the control around and all falls "into place".
See Kevin's reply and my answer to that.
Werner
On 09/26/2011 05:01 PM, David Hughes wrote:
On 26/09/2011 15:39, werner wrote:
Sorry, I should have paid more attention to your mention of *
sized_controls *I wasn’t aware of them, but I am now and they look good.
-- Regards
David Hughes
Forestfield Software
No problem - happens to us all
For some reason they never got much attention (at least judging by
the very few questions in relation to them on the list - or maybe
people just use them and have no questions).
Looked at them ages ago but didn’t use them as all my stuff was done
with Boa UI generator as I am doing a total rework of stuff I
started looking at other ways of doing the UI’s and gave them
another try and the more I work with them the more I like them. I
think Kevin did a really neat job on them - only thing which doesn’t
work “out of the box” so far is the handling on StaticBox - see
another thread I had started which has a couple of work arounds for
the issue.
Werner
I wasn't aware of them, but I am now and they
look good.