aboutsummaryrefslogtreecommitdiff
path: root/components/original.py
diff options
context:
space:
mode:
authortassaron2017-06-07 23:22:55 -0400
committertassaron2017-06-07 23:22:55 -0400
commit292d21c20372634f4d0cabf43611d0e50386bc4c (patch)
tree28cc1ca948c4a3001a6a07f91f40dec275ba6a91 /components/original.py
parent6093e701e151af96464b564e275db4664d828a82 (diff)
added submenu for opening presets, moved code
Diffstat (limited to 'components/original.py')
-rw-r--r--components/original.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/original.py b/components/original.py
index 4d0e83b..a2059d1 100644
--- a/components/original.py
+++ b/components/original.py
@@ -37,7 +37,8 @@ class Component(__base__.Component):
self.visColor = self.RGBFromString(self.page.lineEdit_visColor.text())
self.parent.drawPreview()
- def loadPreset(self, pr):
+ def loadPreset(self, pr, presetName=None):
+ self.currentPreset = presetName
self.page.lineEdit_visColor.setText('%s,%s,%s' % pr['visColor'])
btnStyle = "QPushButton { background-color : %s; outline: none; }" \
% QColor(*pr['visColor']).name()