Use lambda function in signals
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
4a3a038528
commit
03ae9ccccf
@ -77,10 +77,9 @@ class AutoZoomer_Plugin(Falkon.PluginInterface, QtCore.QObject):
|
|||||||
del self.actions[window]
|
del self.actions[window]
|
||||||
|
|
||||||
def onWebPageCreated(self, page):
|
def onWebPageCreated(self, page):
|
||||||
def onLoadFinished(ok):
|
page.loadFinished.connect(
|
||||||
self.manager.onLoadFinished(page)
|
lambda ok: self.manager.onLoadFinished(page)
|
||||||
|
)
|
||||||
page.loadFinished.connect(onLoadFinished)
|
|
||||||
|
|
||||||
def populateExtensionsMenu(self, menu):
|
def populateExtensionsMenu(self, menu):
|
||||||
self.manager.onPopulateExtensionsMenu(menu)
|
self.manager.onPopulateExtensionsMenu(menu)
|
||||||
|
@ -23,6 +23,7 @@ from autoZoomer.settingsDialog import SettingsDialog
|
|||||||
from autoZoomer.str2bool import str2bool
|
from autoZoomer.str2bool import str2bool
|
||||||
from autoZoomer.i18n import i18n
|
from autoZoomer.i18n import i18n
|
||||||
|
|
||||||
|
|
||||||
class AutoZoomer(QtCore.QObject):
|
class AutoZoomer(QtCore.QObject):
|
||||||
menuAction = None
|
menuAction = None
|
||||||
data = None
|
data = None
|
||||||
|
Loading…
Reference in New Issue
Block a user