mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
785843198a
1. use installed python 2. add settings to choose python directory 3. add py3 compability 4. create hello world python example
17 lines
360 B
Python
17 lines
360 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"
|
|
})
|
|
return results
|
|
|
|
if __name__ == "__main__":
|
|
HelloWorld() |