- adjustment = gtk.Adjustment(0, -sys.float_info.max, sys.float_info.max, 1)
+ try:
+ # Python 2.6 is much cleaner
+ floatMin = -sys.float_info.min
+ floatMax = sys.float_info.max
+ except AttributeError:
+ # Python 2.5 support
+ floatMin = -1.79e308
+ floatMax = 1.79e308
+ adjustment = gtk.Adjustment(0, floatMin, floatMax, 1)