Pokemon-Terminal/adapter/base.py

23 lines
605 B
Python
Raw Normal View History

2017-06-21 11:49:16 +00:00
class TerminalAdapterInterface(object):
@staticmethod
def is_available():
"""
:return: True if the environment implies we are using this terminal.
:rtype bool
"""
raise NotImplementedError()
def set_image_file_path(self, image_file_path):
"""
Set the background image of the terminal.
:param image_file_path: Path to an image file.
:rtype str
"""
2017-06-21 11:49:16 +00:00
raise NotImplementedError()
def clear(self):
"""
Clear the terminal's background image.
"""
2017-06-21 11:49:16 +00:00
raise NotImplementedError()