cleanup debug stuff

This commit is contained in:
Noah Swerhun 2023-03-14 20:29:25 -05:00
parent 0c95a72630
commit 64ff1d8f3b
2 changed files with 2 additions and 9 deletions

View file

@ -96,9 +96,7 @@ class Module:
# Generate new text # Generate new text
self.generate_text() self.generate_text()
# Print the entire bar # Print the entire bar
#self.bar.print() self.bar.print()
print(self.text)
if self.signal == 0: if self.signal == 0:
if self.refresh == 0: if self.refresh == 0:
@ -108,10 +106,7 @@ class Module:
if self.refresh == 0: if self.refresh == 0:
sigwait([self.signal]) sigwait([self.signal])
else: else:
sig = sigtimedwait([self.signal], self.refresh) sigtimedwait([self.signal], self.refresh)
if sig:
print("Recieved signal " + str(sig))
continue
def start_thread(self): def start_thread(self):
thread = Thread(target=self.thread_callback) thread = Thread(target=self.thread_callback)

View file

@ -11,8 +11,6 @@ def main():
seperator = bar_config["seperator"] seperator = bar_config["seperator"]
margin = bar_config["margin"] margin = bar_config["margin"]
print(getpid())
signal_router = SignalRouter() signal_router = SignalRouter()
bar = Bar(seperator, margin) bar = Bar(seperator, margin)