From 738dee480142f780a836b6e292fb613f3914af93 Mon Sep 17 00:00:00 2001 From: Johannes Blume Date: Sat, 2 Mar 2013 20:28:14 +0100 Subject: [PATCH] Update README.md --- README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f92176..063ecdd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,40 @@ rainmeter-python ================ -Plugin for Rainmeter enabling Python scripting \ No newline at end of file +Plugin for Rainmeter enabling Python 3 scripting + +Installation +------------ + +For this plugin to function, you need to install the Python 3.3 distribution matching your Rainmeter's architecture. +The corresponding 'python33.dll' needs to be in your DLL search path; all standard installers of Python 3.3 automatically put the DLL into your System32 directory, so this should normally be the case. + +Example +------- +```ini +[Measure] +Measure=Plugin +Plugin=Plugins\Python.dll +PythonHome=c:\Python33 +ScriptPath=default.py +ClassName=Measure +UpdateRate=1 +``` + +```python +class Measure: + def Reload(self, rm, maxValue): + rm.RmLog(rm.LOG_NOTICE, "Reload called") + + def Update(self): + return 1.0 + + def GetString(self): + return 'Test' + + def ExecuteBang(self, args): + pass + + def Finalize(self): + pass +```