diff options
| author | tassaron | 2017-06-22 18:40:34 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-22 18:40:34 -0400 |
| commit | 5c74d496a960042ed4a4279328dc81e23dfdc1d9 (patch) | |
| tree | f11c4f6fe69ab202688b55100ec841bb24f8804f /components/text.py | |
| parent | 82011de966f95afa88ec9e11e0ce86cbd04d5fc0 (diff) | |
preset-loading and basic args from commandline
also made some docstrings more informative
Diffstat (limited to 'components/text.py')
| -rw-r--r-- | components/text.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/components/text.py b/components/text.py index f8ef7b3..6c465b1 100644 --- a/components/text.py +++ b/components/text.py @@ -146,3 +146,13 @@ class Component(__base__.Component): return self.page.lineEdit_textColor.setText(RGBstring) self.page.pushButton_textColor.setStyleSheet(btnStyle) + + def commandHelp(self, arg): + print('Enter a string to use as centred white text. ' + 'Use quotes around the string to escape spaces.') + + def command(self, arg): + if not arg.startswith('preset='): + self.title = arg + return True + super().command(arg) |
