File indexing completed on 2025-01-19 06:55:04
0001 This file refers to kmuddy.py and sample_script.py, within the same directory. 0002 0003 KMuddy Python Scripting 0004 0005 This archive contains an experimental Python interface for KMuddy that 0006 reduces writing your own Python scripts to the following simple steps: 0007 0008 1. import kmuddy 0009 2. initSocket() - (optional, if you want your script to get/set variables, 0010 send commands, etc.) 0011 3. registerEvent(portNumber, eventHandler (optional parameter)) 0012 4. wait4Event() 0013 5. closeSocket() (optional) 0014 6. Implementing the script logic in the event handlers or a loop or both 0015 0016 Comprehensive documentation is provided via Python's built-in __doc__ 0017 facility and in sample_script.py. 0018 0019 This code has not been overly tested, so it is quite possible that it does 0020 not work under certain circumstances (I must admit that this is pretty much 0021 my first Python program ;) 0022 0023 Should you encounter bugs, have further questions or want to contribute 0024 improvements, please go ahead and drop me a line at apefan@web.de or on 0025 the KMuddy forum. 0026 0027 Have fun! 0028 -- 0029 Matthias 0030