Alec Bennett wrote:
> I'm wondering if there's a way to position elements relative to the
> window size? So for example, if hte window gets resized, the content's
> position moves with it?
>
There's not a real good, general way to do it.
You can use the wxPython sizers directly - but that's a bit of work to
learn how sizers work, and how they can be used (and to add the relevant
code to your application). There are some of the samples / tools that do
this (e.g. findfiles).
There is a *simple* form of relative sizer implemented which will work
for *some* *simple* cases; to use it you should add
from PythonCard import simpleSizer
to the head of your main source file, and then in your on_initialize
handler add a line
simpleSizer.autoSizer(self)
Give it a try - but it does only work in some cases ....
--
Alex Tweedly al...@tw... http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.9/573 - Release Date: 05/12/2006
|