From fd2a3d5f48bcfa4de2e8a88b861ff0519ac882ae Mon Sep 17 00:00:00 2001 From: raumlandbahnhof <59166126+raumlandbahnhof@users.noreply.github.com> Date: Mon, 23 May 2022 15:46:51 +0200 Subject: [PATCH] Solves display errors on Mac mini M1 (Monterey) When switching tabs, sometimes the content of the SubscriptionFrame and the PublishHistoryFrame are not displayed completely. This workaround triggers a refresh of the display. If necessary, the current delay (50 ms) can be adjusted for other systems. BTW: I love MQTTk. Finally a perfect replacement for MQTT.fx. Great work! Looking forward to the further development. --- mqttk/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mqttk/__main__.py b/mqttk/__main__.py index ec513a8..b42b737 100644 --- a/mqttk/__main__.py +++ b/mqttk/__main__.py @@ -414,6 +414,8 @@ def export_subscribe_publish(self): def on_tab_select(self, *args, **kwargs): if "logtab" in self.tabs.select(): self.log_tab.mark_as_read() + # Solves display errors on Mac mini M1 (Monterey) + root.after(50, lambda: self.tabs.tab(self.tabs.select(), text=self.tabs.tab(self.tabs.select(), "text"))) def main():