|
@@ -136,7 +136,7 @@ class AutoCompleteFloatEdit(FloatEdit):
|
|
|
return super().keypress(size, key)
|
|
|
|
|
|
class NoTabCheckBox(CheckBox):
|
|
|
-
|
|
|
+
|
|
|
def keypress(self, size, key):
|
|
|
if not isinstance(key, tuple) and key == 'tab':
|
|
|
return None
|
|
@@ -358,7 +358,7 @@ class FlowBarGraphWithVScale(Columns):
|
|
|
labels = vscale or []
|
|
|
caption = caption or u''
|
|
|
top = self.height
|
|
|
- scale = _max*(top+1)/top
|
|
|
+ scale = max(_max*(top+1)/top, 0.0001)
|
|
|
self.graph.set_data(data, scale)
|
|
|
self.graph_vscale._invalidate()
|
|
|
self.graph_vscale.set_scale([
|