XMExample.py
xpertmud/appdata/python/XMExample.py · 499 B
From the archive xpertmud-2005-10-21.zip
Download the archive « Back to the archive contents
from __main__ import *
class XMExample(XMPlugin):
def __init__(self, title):
XMPlugin.__init__(self, "xmud_example", "XmudExample", title)
def setButtonText(self, text):
XM.Plugin_call(self.getID(), 1, text)
def getButtonText(self):
return XM.Plugin_call(self.getID(), 0, "")
def pluginCall(self, function, args):
if function == 0:
return "ButtonPress reached python"
else:
return "Something other (TODO)"