-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04723a9
commit 0a1e915
Showing
5 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
from pysys import * | ||
|
||
|
||
graph = None | ||
|
||
class Graphs: | ||
def __init__(self, nameOfGraph, percentUsed): | ||
self.nameOfGraph = str(nameOfGraph) | ||
self.percentUsed = percentUsed | ||
|
||
def basicInfoGraph(self): | ||
if self.percentUsed <= 10.0: | ||
graph = "#|||||||||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 20.0 and self.percentUsed > 10.0: | ||
graph = "##||||||||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 30.0 and self.percentUsed > 20.0: | ||
graph = "###|||||||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 40.0 and self.percentUsed > 30.0: | ||
graph = "####||||||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 50.0 and self.percentUsed > 60.0: | ||
graph = "#####|||||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 60.0 and self.percentUsed > 50.0: | ||
graph = "######||||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 70.0 and self.percentUsed > 60.0: | ||
graph = "#######|||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 80.0 and self.percentUsed > 70.0: | ||
graph = "########||" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
elif self.percentUsed <= 90.0 and self.percentUsed > 80.0: | ||
graph = "#########|" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
else: | ||
graph = "##########" | ||
print(f"{self.nameOfGraph} {graph} {self.percentUsed}") | ||
|
||
def onlyDrawGraph(self): | ||
if self.percentUsed <= 10.0: | ||
graph = "#|||||||||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 20.0 and self.percentUsed > 10.0: | ||
graph = "##||||||||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 30.0 and self.percentUsed > 20.0: | ||
graph = "###|||||||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 40.0 and self.percentUsed > 30.0: | ||
graph = "####||||||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 50.0 and self.percentUsed > 60.0: | ||
graph = "#####|||||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 60.0 and self.percentUsed > 50.0: | ||
graph = "######||||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 70.0 and self.percentUsed > 60.0: | ||
graph = "#######|||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 80.0 and self.percentUsed > 70.0: | ||
graph = "########||" | ||
print(f"{graph}") | ||
elif self.percentUsed <= 90.0 and self.percentUsed > 80.0: | ||
graph = "#########|" | ||
print(f"{graph}") | ||
else: | ||
graph = "##########" | ||
print(f"{graph}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters