mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 11:09:28 +08:00
27 lines
632 B
Python
27 lines
632 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from wox import Wox
|
|
|
|
class HelloWorld(Wox):
|
|
|
|
def query(self, query):
|
|
results = []
|
|
results.append({
|
|
"Title": "Hello World",
|
|
"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),
|
|
"IcoPath":"Images/app.ico"
|
|
})
|
|
return results
|
|
|
|
if __name__ == "__main__":
|
|
HelloWorld() |