GetPostion() bug with position of -1?
7stud
bbxx789_05ss at yahoo.com
Tue Nov 20 14:09:30 PST 2007
Andrea Gavana <andrea.gavana <at> gmail.com> writes:
>
> I don't think it's a bug, as usually in wxWidgets/wxPython "-1" is
> interpreted as "use whatever default exists for this particular
> widget/sizer/OS/machine". So, by using SetPosition((-1, 10)) wxPython
> assumes you want to default the x coordinate. I may be wrong, so I
> would appreciate if someone else will correct my ignorance in this
> matter.
>
Thanks for the response. You explanation makes a lot of sense.
However, since -1 is a valid coordinate position, I don't understand
how that can be correct behavior. Since -1 is a valid coordinate position,
it should not cause a default value(which appears to be the current value
of that coordinate) to be used instead.
More information about the wxpython-users
mailing list