and im not to know how to call function in class.
this is my script on rainmeter :
Code: Select all
[Rainmeter]
Update=1000
[MeasurePy]
Measure=Plugin
Plugin=Python
PythonHome=C:\Users\Kemal PC\AppData\Local\Programs\Python\Python36
ScriptPath=default.py
ClassName=Measure
Function=Myfunction
UpdateDivider = 60
[Measure]
Meter=String
MeasureName=MeasurePy
FontSize=20
StringStyle=Bold
FontColor=255,255,255
UpdateDivider = 60
Code: Select all
class Measure:
def Reload(self, rm, maxValue):
rm.RmLog(rm.LOG_NOTICE, "Reload called")
def Update(self):
return 1.0
def GetString(self):
return 'default String'
def Myfunction(self):
return 'Function Work'
def ExecuteBang(self, args):
pass
def Finalize(self):
pass
thankyou