コード例 #1
0
ファイル: __init__.py プロジェクト: rbuc/Evernote2AnkiMac
 def _newevent(self, suite, code, args):
     evt = NSAppleEventDescriptor.appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_(
         fourcharcode(suite), fourcharcode(code),
         NSAppleEventDescriptor.nullDescriptor(), 0, 0)
     evt.setDescriptor_forKeyword_(self._codecs.pack(args),
                                   fourcharcode(kae.keyDirectObject))
     return evt
コード例 #2
0
ファイル: aecodecs.py プロジェクト: gianghta/Mactify
 def packnone(self, val):
     return NSAppleEventDescriptor.nullDescriptor()
コード例 #3
0
ファイル: aecodecs.py プロジェクト: WeizhengZhou/pokemonWalk
	def packnone(self, val):
		return NSAppleEventDescriptor.nullDescriptor()
コード例 #4
0
 def pack_none():
     return NSAppleEventDescriptor.nullDescriptor()
コード例 #5
0
ファイル: __init__.py プロジェクト: WeizhengZhou/pokemonWalk
	def _newevent(self, suite, code, args):
		evt = NSAppleEventDescriptor.appleEventWithEventClass_eventID_targetDescriptor_returnID_transactionID_(
						fourcharcode(suite), fourcharcode(code), NSAppleEventDescriptor.nullDescriptor(), 0, 0)
		evt.setDescriptor_forKeyword_(self._codecs.pack(args), fourcharcode(kae.keyDirectObject))
		return evt