pythonui:
--------------------------------------------------------------------------------
Success !

But when running script getting error ! 

pspad.addMenuItem("Example function", "PySample sample",
"beispiel")

Could you please tell me what is 'pspad' in this case? I know this can be class
or module but how?
--------------------------------------------------------------------------------


Hi,
in some python scripts for PSPad I have seen before, there is an assignment:

pspad = globals()['global']

it appears, the support for python via WSH, which is also utilised by PSPad, is
somehow unintuitive in the context of python programming - the namespaces are
somehow nivellated...

hth,
   vbr

-- 
<http://forum.pspad.com/read.php?2,65617,65646>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem