Browse Source

Added extra . for CIM reports.

bugz 5 years ago
parent
commit
2848bd5863
2 changed files with 26 additions and 6 deletions
  1. 14 3
      flexible.py
  2. 12 3
      req.txt

+ 14 - 3
flexible.py

@@ -29,15 +29,20 @@ class SpinningCursor(object):
         self.itercycle = cycle(["/", "-", "\\", "|"])
         self.count = 0
         self.every = every
+
     def reset(self):
         self.itercycle = cycle(["/", "-", "\\", "|"])
         self.count = 0
+
     def click(self):
         self.count += 1
         return self.count % self.every == 0
+
     def cycle(self):
         return next(self.itercycle)
 
+    def again(self, count: int):
+        return self.count % count == 0
 
 def merge(color_string):
     """ Given a string of colorama ANSI, merge them if you can. """
@@ -297,7 +302,10 @@ class CIMWarpReport(object):
         # This should be the CIM Report Data -- parse it
         if self.warpcycle:
             if self.warpcycle.click():
-                self.queue_game.put("\b" + self.warpcycle.cycle())
+                self.queue_game.put("\b")
+                if self.warpcycle.again(1000):
+                    self.queue_game.put(".")
+                self.queue_game.put(self.warpcycle.cycle())
 
         work = line.strip()
         parts = re.split(r"(?<=\d)\s", work)
@@ -424,7 +432,10 @@ class CIMPortReport(object):
         # This should be the CIM Report Data -- parse it
         if self.portcycle:
             if self.portcycle.click():
-                self.queue_game.put("\b" + self.portcycle.cycle())
+                self.queue_game.put("\b")
+                if self.portcycle.again(1000):
+                    self.queue_game.put(".")
+                self.queue_game.put(self.portcycle.cycle())
 
         work = line.replace("%", "")
 
@@ -2132,7 +2143,7 @@ class ProxyMenu(object):
 
         self.queue_game.put(box.top())
         text = self.c + "{0:^30}".format("TradeWars Proxy Active")
-        text = text.replace('Active', BLINK + 'Active' + Style.RESET_ALL)
+        text = text.replace('Active', BLINK + 'Active' + Style.RESET_ALL + self.c)
         self.queue_game.put(box.row(text))
         self.queue_game.put(box.middle())
 

+ 12 - 3
req.txt

@@ -1,21 +1,30 @@
 appdirs==1.4.3
+astroid==2.3.3
 attrs==19.3.0
 Automat==0.8.0
 black==19.10b0
 Click==7.0
+colorama==0.4.1
 constantly==15.1.0
 hyperlink==19.0.0
 idna==2.8
 incremental==17.5.0
+isort==4.3.21
+jsonlines==1.2.0
+lazy-object-proxy==1.4.3
+mccabe==0.6.1
 pathspec==0.6.0
+pendulum==2.0.5
 pkg-resources==0.0.0
 PyHamcrest==1.9.0
+pylint==2.4.4
+python-dateutil==2.8.1
+pytzdata==2019.3
+PyYAML==5.2
 regex==2019.11.1
 six==1.12.0
 toml==0.10.0
 Twisted==19.7.0
 typed-ast==1.4.0
+wrapt==1.11.2
 zope.interface==4.6.0
-colorama==0.4.1
-pendulum==2.0.5
-jsonlines