Thanks Kevin
I appreciate your guide.
路路路
2007/4/10, Mike Rooney <mxr@qvii.com>:
Kevin Ollivier wrote:
> Hi Mike,
>
> On Apr 9, 2007, at 11:54 AM, Mike Rooney wrote:
>
>> Kevin Ollivier wrote:
>>> Hi Jia,
>>>
>>> On Apr 9, 2007, at 7:36 AM, Jia Lu wrote:
>>>
>>>> Hi all
>>>> I found it diffcult to use wxpy's layout.
>>>> Is there any good ideas to set layout or any visual enveriments?
>>>>
>>>> I really got headache about it.
>>>
>>> If you're referring to troubles with sizers, try downloading
>>> wxPython 2.8.3 and the 2.8.3 demo. There's a demo of a new layout
>>> system in there called SizedControls, where many of the layout tasks
>>> are handled for you. I personally find this lets me create layouts
>>> much faster and they still look good on all platforms.
>>>
>>
>> Wow, these look really nice and convenient! I had not looked at them
>> until now. Is this style of laying out controls poised to be a
>> replacement for the "current" method in the future, or just an option
>> that won't be as popular as using sizers like they are now? It seems
>> like this has a lot of potential so I was just wondering what the
>> intention/roadmap of it is.
>
> I'm fairly sure the current method, sizers, will continue to exist
> indefinitely, as SizedControls is actually implemented using them.
> It's just a sort of an abstraction layer for sizers, designed to
> remove tedious coding and get around the conceptual hurdle of having
> layout separated from the controls themselves.
>
> As far as the roadmap is concerned (e.g. how much SizedControls come
> to be used by wxPy itself, the demos, etc.), I think the roadmap will
> be determined by user feedback and adoption. Sizers are one of those
> things that, once you "get them", you become quite an advocate of
> them. (And, to be sure, there's no way I could have implemented
> SizedControls without them!) So I suspect that it'll be a bit of an
> uphill battle convincing some of the "sizer fans" that SizedControls
> retain the power of sizers while at the same time making layouts
> easier and less work to create. (particularly that one guy who's done
> a lot of work on sizers...But I really do feel that they do.
>Haha yes, what I meant by all this was, is this new "abstraction layer"
supposed to become commonly used instead of using sizers more
explicitly, but I think you have answered my question. I think it was
just a few weeks ago, after having used wxPython for 4 months 40 hours a
week, when sizers finally "clicked" for me and I was then able to code
my layout and have it appear exactly as it did in my head on the first
attempt. Well, with BoxSizers anyway, which is what I use 97% of the
time for layout. FlexGrid and GridBad sizers still intimidate me a
little bit.It looks like this really removes a lot of the tedious elements out of
laying out controls traditionally. I will be sure to try to lay out my
next window with these and see how it works!- Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
--
-- Jia LU
<http://www.lujia.us>
Registered Linux user #434792
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')])
for p in '001akor@liamg.moc'.split('@')])"
--
\ "Unix is an operating system, OS/2 is half an operating system, |
`\ Windows is a shell, and DOS is a boot partition virus." -- |
_o__) Peter H. Coffin |