Hello,

Have started playing with pyXPCOM from the mozpython site.

Trying to wrap some of xulplanets examples:

I have this python class for copying text

class clipBoard:
def __init__(self):
self.gClipboardHelper = components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(components.interfaces.nsIClipboardHelper)


    def copyString(self,text):
        self.gClipboardHelper.copyString(text)

but when I call it using

clipBoard.copyString("this is a test of text copying")

all I get is an empty string?

Any ideas.

Thanks in advance,

Guy
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to