Formatting and layout changes
This commit is contained in:
@@ -42,7 +42,7 @@ def IN_CUBIC(t, b, c, d):
|
||||
c = float(c)
|
||||
d = float(d)
|
||||
|
||||
t = t / d
|
||||
t /= d
|
||||
|
||||
return c * t * t * t + b
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ class LoadAnimation(wx.Window):
|
||||
barColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOWTEXT)
|
||||
shadeColor = colorUtils.GetSuitableColor(barColor, 0.75)
|
||||
|
||||
barWidth = (rect.width) / self.bars
|
||||
barWidth = rect.width / self.bars
|
||||
barHeight = rect.height - self.padding * 2
|
||||
|
||||
x = self.padding
|
||||
|
||||
@@ -43,7 +43,7 @@ def GetBrightnessO1(color):
|
||||
# Calculates the brightness of a color, different options
|
||||
|
||||
r, g, b = color
|
||||
return (0.299 * r + 0.587 * g + 0.114 * b)
|
||||
return 0.299 * r + 0.587 * g + 0.114 * b
|
||||
|
||||
|
||||
def GetBrightnessO2(color):
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'''
|
||||
"""
|
||||
Font file to handle the differences in font calculations between
|
||||
different wxPython versions
|
||||
'''
|
||||
"""
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
|
||||
@@ -67,7 +67,7 @@ def formatAmount(val, prec=3, lowest=0, highest=0, currency=False, forceSign=Fal
|
||||
except IndexError:
|
||||
nextKey = 0
|
||||
# Check if mantissa with next suffix is in range [1, 1000)
|
||||
if abs(val) < 10 ** (nextKey) and key >= lowest:
|
||||
if abs(val) < 10 ** nextKey and key >= lowest:
|
||||
mantissa, suffix = val / float(10 ** key), negSuffixMap[key]
|
||||
# Do additional step to eliminate results like 0.9999 => 1000m
|
||||
# Check if the key we're potentially switching to is greater than our
|
||||
|
||||
Reference in New Issue
Block a user