[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
|
@ -14,6 +14,14 @@ class Theme(object):
|
|||
def __init__(self, name):
|
||||
self._theme = self.load(name)
|
||||
|
||||
def prefix(self):
|
||||
"""Return the theme prefix for a widget's full text"""
|
||||
return None
|
||||
|
||||
def suffix(self):
|
||||
"""Return the theme suffix for a widget's full text"""
|
||||
return None
|
||||
|
||||
def load(self, name):
|
||||
"""Load and parse a theme file"""
|
||||
path = theme_path()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue