313 |
else: |
else: |
314 |
win.SetForegroundColour(wxRED) |
win.SetForegroundColour(wxRED) |
315 |
|
|
316 |
|
win.Refresh() |
317 |
|
|
318 |
return valid |
return valid |
319 |
|
|
320 |
|
|
349 |
if numGroups == 0: return clazz |
if numGroups == 0: return clazz |
350 |
|
|
351 |
for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)): |
for value, prop in zip(list, PropertyRamp(numGroups, prop1, prop2)): |
352 |
clazz.AddGroup(ClassGroupSingleton(value, prop)) |
clazz.AppendGroup(ClassGroupSingleton(value, prop)) |
353 |
|
|
354 |
return clazz |
return clazz |
355 |
|
|
371 |
|
|
372 |
# this check guards against rounding issues |
# this check guards against rounding issues |
373 |
if cur_min != cur_max: |
if cur_min != cur_max: |
374 |
clazz.AddGroup(ClassGroupRange(cur_min, cur_max, prop)) |
clazz.AppendGroup(ClassGroupRange(cur_min, cur_max, prop)) |
375 |
|
|
376 |
cur_min = cur_max |
cur_min = cur_max |
377 |
cur_max += step |
cur_max += step |