Permalink
Browse files

Removed complex example

  • Loading branch information...
1 parent 9b417c0 commit 84ab6a92a284fad54a0702235b4ca7855f5097d6 @kunal committed Jan 13, 2010
Showing with 0 additions and 58 deletions.
  1. +0 −21 examples/complex/consumer.py
  2. +0 −11 examples/complex/dispatcher.py
  3. +0 −26 examples/complex/provider.py
@@ -1,21 +0,0 @@
-#!/usr/bin/env python
-
-from pyEventDispatcher.EventDispatcher import EventDispatcher
-
-from dispatcher import dispatcher
-
-class Consumer:
- def __init__(self):
- self.dispatcherObj = dispatcher()
- self.dispatcher = self.dispatcherObj.getEventDispatcher()
- self.dispatcher.connect('uc', self.abc)
- self.dispatcher.connect('ucc', self.pqr)
-
- def getDispatcher(self):
- return self.dispatcher
-
- def abc(self):
- print "hmm"
-
- def pqr(self):
- print "test"
@@ -1,11 +0,0 @@
-#!/usr/bin/env python
-
-from pyEventDispatcher.EventDispatcher import EventDispatcher
-
-class dispatcher():
- def __init__(self):
- pass
-
- def getEventDispatcher(self):
- self.dispatcherObj = EventDispatcher()
- return self.dispatcherObj
@@ -1,26 +0,0 @@
-#!/usr/bin/env python
-
-from pyEventDispatcher.Event import Event
-from pyEventDispatcher.EventDispatcher import EventDispatcher
-
-from consumer import Consumer
-from dispatcher import dispatcher
-
-class Main():
- def __init__(self):
- self.dispatcherObj = dispatcher()
- self.dispatcher = self.dispatcherObj.getEventDispatcher()
-
- self.event = Event(self, 'ucc', {})
- self.dispatcher.notify(self.event)
- self.event = Event(self, 'uc', {})
- self.dispatcher.notify(self.event)
-
- def getEvent(self):
- return self.event
-
-if __name__ == '__main__':
- c = Main()
-
-
-#dispatcher.notify(event)

0 comments on commit 84ab6a9

Please sign in to comment.