Source

wxPython / wx / lib / pubsub / examples / basic_kwargs / console_senders.py

Full commit
'''

:copyright: Copyright 2006-2009 by Oliver Schoenborn, all rights reserved.
:license: BSD, see LICENSE.txt for details.

'''

from pubsub import pub


def doSomething1():
    print '--- SENDING topic1.subtopic11 message ---'
    pub.sendMessage('topic1.subtopic11', msg='message for 11', extra=123)
    print '---- SENT topic1.subtopic11 message ----'

def doSomething2():
    print '--- SENDING topic1 message ---'
    pub.sendMessage('topic1', msg='message for 1')
    print '---- SENT topic1 message ----'