1

Tutorial3: Make buttons class/object variable

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2020-01-12 14:11:40 +01:00
parent 4baa816d77
commit 1d451f4ca4
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -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)