diff options
| author | tassaron | 2017-08-01 17:57:39 -0400 |
|---|---|---|
| committer | tassaron | 2017-08-01 17:57:39 -0400 |
| commit | 3c1b52205f183e9a2c943c5f666ed2c01db3aaf5 (patch) | |
| tree | 0b92d6d2a1a21b87bd9f2f19181da15c09a1408b /src/toolkit/frame.py | |
| parent | a472246dab69d0676c3c78ecd61659e432c960b4 (diff) | |
component class now tracks colorwidgets
so adding new color-selection widgets is now simple
Diffstat (limited to 'src/toolkit/frame.py')
| -rw-r--r-- | src/toolkit/frame.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/toolkit/frame.py b/src/toolkit/frame.py index f42d4c9..c007188 100644 --- a/src/toolkit/frame.py +++ b/src/toolkit/frame.py @@ -42,9 +42,9 @@ class PaintColor(QtGui.QColor): super().__init__(b, g, r, a) -def scale(scale, width, height, returntype=None): - width = (float(width) / 100.0) * float(scale) - height = (float(height) / 100.0) * float(scale) +def scale(scalePercent, width, height, returntype=None): + width = (float(width) / 100.0) * float(scalePercent) + height = (float(height) / 100.0) * float(scalePercent) if returntype == str: return (str(math.ceil(width)), str(math.ceil(height))) elif returntype == int: |
