From 165eece6da5c81dfd67d2ac822c513cb7d89ae4b Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Thu, 5 Jun 2008 02:03:52 -0700 Subject: [PATCH] qobserver: add support for optional args in init() Signed-off-by: David Aguilar --- ugit/qobserver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ugit/qobserver.py b/ugit/qobserver.py index cd6d889e..2e552d4d 100644 --- a/ugit/qobserver.py +++ b/ugit/qobserver.py @@ -19,7 +19,7 @@ from ugit.observer import Observer class QObserver(Observer, QObject): - def __init__(self, model, view): + def __init__(self, model, view, *args, **kwargs): Observer.__init__(self, model) QObject.__init__(self) @@ -31,9 +31,9 @@ class QObserver(Observer, QObject): self.__view_to_model = {} self.__connected = [] # Call user-defined startup routine - self.init(model, view) + self.init(model, view, *args, **kwargs) - def init(self, model, view): + def init(self, model, view, *args, **kwargs): pass def SLOT(self, *args): -- 2.11.4.GIT