fixed types of variables

This commit is contained in:
arcan1s
2014-04-05 16:30:09 +04:00
parent 6f6af548ef
commit 2e93325601
3 changed files with 38 additions and 32 deletions

View File

@ -28,11 +28,15 @@ class Tooltip():
self.parent = parent
def createGraphic(self, types, colors, bounds, values, widget):
def createGraphic(self, ptmVars, ptmTooltip, widget):
"""function to create graph"""
widget.clear()
maxOne = [100.0, 100.0]
pen = QPen()
bounds = ptmTooltip['bounds']
colors = ptmVars['colors']
types = ptmVars['required']
values = ptmTooltip['values']
maxOne = [100.0, 100.0]
bounds['down'] = 1.0
for value in values['down']:
if (bounds['down'] < value):