jan: thuban/Thuban/UI classgen.py,1.30.2.4,1.30.2.5
cvs@intevation.de
cvs at intevation.de
Fri Jan 21 15:18:08 CET 2005
Author: jan
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv21537
Modified Files:
Tag: thuban-1-0-branch
classgen.py
Log Message:
(GenQuantilesPanel.OnRetrieve):
Backport from HEAD:
Add a OnRangeText(0) to work around a different in wx Behaviour noticed
on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
Index: classgen.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/classgen.py,v
retrieving revision 1.30.2.4
retrieving revision 1.30.2.5
diff -u -d -r1.30.2.4 -r1.30.2.5
--- classgen.py 15 Dec 2004 16:45:30 -0000 1.30.2.4
+++ classgen.py 21 Jan 2005 14:18:06 -0000 1.30.2.5
@@ -904,6 +904,11 @@
try:
min, max = table.ValueRange(self.fieldName)
self.text_range.SetValue("[" + str(min) + ";" + str(max) + "]")
+ # This is a workaround, which will result in OnRangeText
+ # being called twice on some platforms.
+ # Testing showed this is needed with current wx 2.4. versions
+ # on MacOSX to guarantee that it is called at all.
+ self.OnRangeText(None)
finally:
ThubanEndBusyCursor()
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)