Skip to content

Commit e627db0

Browse files
committed
Backup method when print without screen manager active
1 parent e02aec0 commit e627db0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ def splash(self, topLine, botLine = ''):
327327
return
328328

329329
def print(self, topLine, botLine = ''):
330+
if not self.is_alive():
331+
self.splash(topLine, botLine)
332+
print("Screen manager not active. Backup method used.")
333+
330334
self.messages.put([str(topLine), str(botLine)])
331335
return
332336

shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import components as cm
88

9-
version = 'v0.3.9'
9+
version = 'v0.4'
1010

1111
settings = configparser.ConfigParser()
1212
settings.read(os.path.join(sys.path[0], 'settings.conf'))

0 commit comments

Comments
 (0)