bernhard: thuban/Thuban/UI classgen.py,1.34,1.35
Bernhard Reiter
bernhard at intevation.de
Thu Jan 20 12:45:46 CET 2005
On Thu, Jan 20, 2005 at 12:34:29PM +0100, Bernhard Herzog wrote:
> 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.
Done, thanks for the hints.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20050120/0c6d448b/attachment.bin
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)