From 1d451f4ca441a3dccd224408be48108af44b2fbf Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Sun, 12 Jan 2020 14:11:40 +0100 Subject: [PATCH] Tutorial3: Make buttons class/object variable Signed-off-by: Juraj Oravec --- extensions/Tutorial3/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/Tutorial3/__init__.py b/extensions/Tutorial3/__init__.py index e55a3b1..c9364e0 100644 --- a/extensions/Tutorial3/__init__.py +++ b/extensions/Tutorial3/__init__.py @@ -24,9 +24,9 @@ from Tutorial3.TutorialButton import TutorialButton class Tutorial3_Plugin(Falkon.PluginInterface, QtCore.QObject): - def init(self, state, settingsPath): - self.buttons = {} + buttons = {} + def init(self, state, settingsPath): plugins = Falkon.MainApplication.instance().plugins() plugins.mainWindowCreated.connect(self.mainWindowCreated)