bernhard: thuban/Thuban/UI classgen.py,1.34,1.35
Bernhard Herzog
bh at intevation.de
Thu Jan 20 12:34:29 CET 2005
cvs at intevation.de writes:
> --- classgen.py 15 Dec 2004 16:42:56 -0000 1.34
> +++ classgen.py 20 Jan 2005 11:30:52 -0000 1.35
> @@ -904,6 +904,7 @@
> try:
> min, max = table.ValueRange(self.fieldName)
> self.text_range.SetValue("[" + str(min) + ";" + str(max) + "]")
> + self.OnRangeText(0)
Can you add a comment to the sources about this work-around as well?
The fix is a bit ugly since on the platform where we don't need the
explicit OnRangeText call, OnRangeText ends up being called twice.
Also, why 0 as parameter? Strictly speaking it should be the event
object, since it's an event handler. We don't have the appropriate
event, so None seems more reasonable.
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://skencil.org/
Thuban http://thuban.intevation.org/
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)