home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_2448 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  604 b   |  16 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import win32ui
  5. import dde
  6. server = dde.CreateServer()
  7. server.Create('TestClient')
  8. conversation = dde.CreateConversation(server)
  9. conversation.ConnectTo('RunAny', 'RunAnyCommand')
  10. conversation.Exec('DoSomething')
  11. conversation.Exec('DoSomethingElse')
  12. conversation.ConnectTo('RunAny', 'ComputeStringLength')
  13. s = 'abcdefghi'
  14. sl = conversation.Request(s)
  15. print 'length of "%s" is %s' % (s, sl)
  16.