Pokemon-Terminal/pokemonterminal/adapter/base.py
2017-09-01 14:30:33 -03:00

22 lines
605 B
Python

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
"""
raise NotImplementedError()
def clear(self):
"""
Clear the terminal's background image.
"""
raise NotImplementedError()