Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Adds a new Alfred.Item to this handler

Keyword arguments:
item -- The Alfred.Item you want to add ;)

src/a/l/alfred.py-HEAD/example.py   alfred.py(Download)
 
# Add items with add_item
handler.add_item(Alfred.Item(title="Example entry #1", subtitle="best entry!", icon="cake.png", uid=1, arg="#1"))
handler.add_item(Alfred.Item(title="Entry #2", subtitle="Cake!", uid=815, arg="#2"))
 

src/a/l/alfred-haxelib-HEAD/haxelib_install.py   alfred-haxelib(Download)
		# TODO: add description to subtitle
		item = Alfred.Item(title=result, subtitle="Install %s" % result, uid=result, arg=result)
		handler.add_item(item)
else:
	if lib_name in haxelib_result:
		item = Alfred.Item(title=lib_name, subtitle="Install %s version %s" % (lib_name, lib_version), uid=lib_name, arg="%s %s" % (lib_name, lib_version))
		handler.add_item(item)

src/a/l/alfred-haxelib-HEAD/haxelib_info.py   alfred-haxelib(Download)
for result in haxelib_result:
	item = Alfred.Item(title=result, uid=result, arg=result)
	handler.add_item(item)
 
handler.push()