예제 #1
0
 def testIsCurrentClipboard(self):
     do = TestDataObject("Hello from Python")
     do = WrapCOMObject(do, iid=pythoncom.IID_IDataObject)
     pythoncom.OleSetClipboard(do)
     self.failUnless(pythoncom.OleIsCurrentClipboard(do))
예제 #2
0
 def testIsCurrentClipboard(self):
     do = TestDataObject(b"Hello from Python")
     do = WrapCOMObject(do, iid=pythoncom.IID_IDataObject)
     pythoncom.OleSetClipboard(do)
     self.assertTrue(pythoncom.OleIsCurrentClipboard(do))