From 4bf03ef0d964a904a6035677ea6522c35be746a3 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 12 Sep 2017 13:30:38 +0200 Subject: [PATCH] [minor] update radioButton StyleSheet --- pylot/core/util/widgets.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index ff8d24c1..2dc75ed6 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2236,7 +2236,16 @@ class MultiEventWidget(QWidget): rb = QtGui.QRadioButton(key) rb.toggled.connect(self.check_rb_selection) if color: - rb.setStyleSheet('QRadioButton{color: rgba%s}'%str(color)) + color = 'rgba{}'.format(color) + else: + color = 'transparent' + rb.setStyleSheet('QRadioButton{' + 'background-color: %s;' + 'border-style:outset;' + 'border-width:1px;' + 'border-radius:5px;' + 'padding:5px;' + '}' % str(color)) if index == 0: rb.setChecked(True) self.rb_dict[key] = rb