[core/theme] Add prefix/postfix methods
Add a way to specify prefix and postfix strings to the full text of a widget's text. Currently, the theme does not fill those yet. see #23
This commit is contained in:
parent
e6666becb3
commit
64f5fc100e
6 changed files with 73 additions and 6 deletions
|
@ -29,4 +29,21 @@ class MockWidget(object):
|
|||
def full_text(self):
|
||||
return self._text
|
||||
|
||||
class MockTheme(object):
|
||||
def __init__(self):
|
||||
self._prefix = None
|
||||
self._suffix = None
|
||||
|
||||
def set_prefix(self, value):
|
||||
self._prefix = value
|
||||
|
||||
def set_suffix(self, value):
|
||||
self._suffix = value
|
||||
|
||||
def prefix(self):
|
||||
return self._prefix
|
||||
|
||||
def suffix(self):
|
||||
return self._suffix
|
||||
|
||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue