Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Use int() to remove trailing zero from round()
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Brandoff committed Oct 5, 2014
1 parent 3e8d0de commit dc85c05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions driveshare.kv
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
text: 'Storage Space'
y: int(self.parent.height/2) + 17
RelThickLabel:
text: str(round(app.used_space/app.allocated_space*100)) + ' %'
text: str(int(round(app.used_space/app.allocated_space*100))) + ' %'
y: int(self.parent.height/2) + 17
right: self.parent.width + 0*self.width
RelThinLabel:
Expand All @@ -318,14 +318,14 @@
LabelTypeUpper:
text: 'FREE'
LabelTypeLower:
text: str(round((app.allocated_space - app.used_space) / app.denominator_factor)) + ' ' + app.denominator
text: str(int(round((app.allocated_space - app.used_space) / app.denominator_factor))) + ' ' + app.denominator
ElementLayout:
RelativeLayout:
orientation: 'vertical'
LabelTypeUpper:
text: 'USED'
LabelTypeLower:
text: str(round(app.used_space / app.denominator_factor)) + ' ' + app.denominator
text: str(int(round(app.used_space / app.denominator_factor))) + ' ' + app.denominator
ElementLayout:
size_hint: None, 1,
width: int(self.parent.width/3)
Expand All @@ -334,7 +334,7 @@
LabelTypeUpper:
text: 'TOTAL'
LabelTypeLower:
text: str(round(app.allocated_space / app.denominator_factor)) + ' ' + app.denominator
text: str(int(round(app.allocated_space / app.denominator_factor))) + ' ' + app.denominator
NavButtonContainer:
NavButton:
text: 'SETTINGS'
Expand Down

0 comments on commit dc85c05

Please sign in to comment.