From eb8d9188365b13ea7f10994b8b31e6aa2a588cb2 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Mon, 30 May 2016 14:31:40 +0200 Subject: [PATCH] Configtool: implement tooltips for boolChoices. Now these display bus type and display type choices have their help text, too. --- configtool/page.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configtool/page.py b/configtool/page.py index c5dd242..0af2603 100644 --- a/configtool/page.py +++ b/configtool/page.py @@ -238,6 +238,12 @@ class Page: if k in ht.keys(): self.choices[k].SetToolTipString(ht[k]) + for k in self.boolChoices.keys(): + for candidate in ht.keys(): + if candidate.startswith(k): + self.boolChoices[k].SetToolTipString(ht[candidate]) + break + def insertValues(self, cfgValues): self.assertValid(True) self.enableAll(True)