Changeset 26f3b5f for protocols/python/examples/sampleplugin.py
- Timestamp:
- 2013-03-19T19:58:17Z (12 years ago)
- Children:
- 1dcfd1f
- Parents:
- 93302ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/python/examples/sampleplugin.py
r93302ef r26f3b5f 9 9 print "hello, I'm a test plugin running on Python", sys.version_info 10 10 11 # plugin name: 12 name = 'moose' 13 11 print bpython.ProtocolPlugin 12 print bpython.ProtocolPlugin() 14 13 print bpython.register_protocol 15 14 15 try: 16 class MyProtocol(bpython.ProtocolPlugin): 17 pass 18 except Exception, e: 19 print "error:", e 20 21 myproto = MyProtocol() 22 print "myproto: ", myproto 23 16 24 bpython.register_protocol('echo "hello"')
Note: See TracChangeset
for help on using the changeset viewer.