create variable just before using it
This commit is contained in:
parent
4a7a26456d
commit
a3cfe0abbe
1 changed files with 2 additions and 2 deletions
|
@ -365,8 +365,6 @@ class WidgetDrawer(object):
|
|||
separator = self._theme.separator(widget)
|
||||
self.add_separator(widget, separator)
|
||||
|
||||
full_text = widget.full_text()
|
||||
|
||||
padding = self._theme.padding(widget)
|
||||
|
||||
self._prefix = self._theme.prefix(widget, padding)
|
||||
|
@ -382,6 +380,8 @@ class WidgetDrawer(object):
|
|||
self._prefix
|
||||
)
|
||||
|
||||
full_text = widget.full_text()
|
||||
|
||||
if self._prefix:
|
||||
full_text = u"{}{}".format(self._prefix, full_text)
|
||||
if self._suffix:
|
||||
|
|
Loading…
Reference in a new issue