Ignore:
Timestamp:
2013-03-19T19:58:17Z (12 years ago)
Author:
Nick Murdoch <nick@…>
Children:
1dcfd1f
Parents:
93302ef
Message:

Create a shell Protocol class for the module.

Can't currently do much with it, including even subclassing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/python/examples/sampleplugin.py

    r93302ef r26f3b5f  
    99print "hello, I'm a test plugin running on Python", sys.version_info
    1010
    11 # plugin name:
    12 name = 'moose'
    13 
     11print bpython.ProtocolPlugin
     12print bpython.ProtocolPlugin()
    1413print bpython.register_protocol
    1514
     15try:
     16    class MyProtocol(bpython.ProtocolPlugin):
     17        pass
     18except Exception, e:
     19    print "error:", e
     20
     21myproto = MyProtocol()
     22print "myproto: ", myproto
     23
    1624bpython.register_protocol('echo "hello"')
Note: See TracChangeset for help on using the changeset viewer.