diff frontends/src/quick_frontend/quick_app.py @ 1323:a599b6a70dc0 frontends_multi_profiles

frontends (quick_frontend): fixes a typo (listerner --> listener)
author souliane <souliane@mailoo.org>
date Fri, 20 Feb 2015 22:06:13 +0100
parents 781ee3539252
children 49f967fc87aa
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Tue Feb 10 10:33:54 2015 +0100
+++ b/frontends/src/quick_frontend/quick_app.py	Fri Feb 20 22:06:13 2015 +0100
@@ -196,7 +196,7 @@
         self.selected_widget = None # widget currently selected (must be filled by frontend)
 
         # listeners
-        self._listeners = {} # key: listerner type ("avatar", "selected", etc), value: list of callbacks
+        self._listeners = {} # key: listener type ("avatar", "selected", etc), value: list of callbacks
 
         ## bridge ##
         try:
@@ -287,8 +287,8 @@
             handler(*args, **kwargs)
         self.bridge.register(functionName, signalReceived, iface)
 
-    def addListerner(self, type_, callback):
-        """Add a listerner for an event
+    def addListener(self, type_, callback):
+        """Add a listener for an event
 
         /!\ don't forget to remove listener when not used anymore (e.g. if you delete a widget)
         @param type_: type of event, can be:
@@ -302,7 +302,7 @@
     def removeListener(self, type_, callback):
         """Remove a callback from listeners
 
-        @param type_: same as for [addListerner]
+        @param type_: same as for [addListener]
         @param callback: callback to remove
         """
         assert type_ in C.LISTENERS
@@ -311,7 +311,7 @@
     def callListeners(self, type_, *args):
         """Call all methods which listen of type_ event
 
-        @param type_: same as for [addListerner]
+        @param type_: same as for [addListener]
         @param *args: arguments sent to callback
         """
         assert type_ in C.LISTENERS