From b4ca417b7e02f7cabba6689dc63eb7b733164fdf Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 18 Sep 2023 14:31:14 -0400 Subject: rules working --- src/rule.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rule.py') diff --git a/src/rule.py b/src/rule.py index 6ecf7d7..414ccf0 100644 --- a/src/rule.py +++ b/src/rule.py @@ -30,11 +30,15 @@ class Rule: # TODO Consider making this a color selector widget color_widget = QLineEdit() color_widget.setPlaceholderText("Color") + if self.color: + color_widget.setText(self.color) output.addWidget(color_widget) # TODO Consider making this a color selector widget highlight_widget = QLineEdit() highlight_widget.setPlaceholderText("Highlight") + if self.highlight: + highlight_widget.setText(self.highlight) output.addWidget(highlight_widget) return output -- cgit