mirror of
https://github.com/gryf/fs-uae-wrapper.git
synced 2026-02-14 21:15:48 +01:00
Added dummy message class for systems with python without tk
This commit is contained in:
18
fs_uae_wrapper/nogui_message.py
Normal file
18
fs_uae_wrapper/nogui_message.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Display message as simple text on console
|
||||
"""
|
||||
import sys
|
||||
|
||||
|
||||
class Message:
|
||||
"""Just a fake message window for systems without TK"""
|
||||
|
||||
def __init__(self, msg):
|
||||
self.msg = msg
|
||||
self._process = None
|
||||
|
||||
def show(self):
|
||||
sys.stdout.write(self.msg + "\n")
|
||||
|
||||
def close(self):
|
||||
return None
|
||||
Reference in New Issue
Block a user