2016-05-05 00:57:03 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
2020-04-21 12:54:41 +00:00
|
|
|
from flowlauncher import Flow.Launcher
|
2016-05-05 00:57:03 +00:00
|
|
|
|
2020-04-21 09:12:17 +00:00
|
|
|
class HelloWorld(Flow.Launcher):
|
2016-05-05 00:57:03 +00:00
|
|
|
|
|
|
|
|
def query(self, query):
|
|
|
|
|
results = []
|
|
|
|
|
results.append({
|
|
|
|
|
"Title": "Hello World",
|
2017-04-11 13:34:04 +00:00
|
|
|
"SubTitle": "Query: {}".format(query),
|
|
|
|
|
"IcoPath":"Images/app.ico",
|
|
|
|
|
"ContextData": "ctxData"
|
|
|
|
|
})
|
|
|
|
|
return results
|
|
|
|
|
|
|
|
|
|
def context_menu(self, data):
|
|
|
|
|
results = []
|
|
|
|
|
results.append({
|
|
|
|
|
"Title": "Context menu entry",
|
|
|
|
|
"SubTitle": "Data: {}".format(data),
|
2016-05-05 00:57:03 +00:00
|
|
|
"IcoPath":"Images/app.ico"
|
|
|
|
|
})
|
|
|
|
|
return results
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
HelloWorld()
|