From 94cd2c0599ec6285e61a817e11fb323a3fcad22b Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Wed, 25 Dec 2013 00:21:54 +0800 Subject: [PATCH] UI staff --- PyWinAlfred/Main.cpp | 1 + PyWinAlfred/PyWinAlfred.vcxproj | 1 + WinAlfred/App.config | 2 +- WinAlfred/App.xaml | 27 +++++++++++++++++ WinAlfred/MainWindow.xaml | 2 +- WinAlfred/MainWindow.xaml.cs | 52 ++++++++++++++++++++------------- WinAlfred/WinAlfred.csproj | 2 +- WinAlfred/packages.config | 4 +-- 8 files changed, 65 insertions(+), 26 deletions(-) diff --git a/PyWinAlfred/Main.cpp b/PyWinAlfred/Main.cpp index 7f3f8a00b1..4ff589a1ea 100644 --- a/PyWinAlfred/Main.cpp +++ b/PyWinAlfred/Main.cpp @@ -38,6 +38,7 @@ extern "C" __declspec(dllexport) char* ExecPython(char* directory, char* file, c // Call a method of the class with two parameters pValue = PyObject_CallMethod(pInstance,"query", "(s)",query); char * str_ret = PyString_AsString(pValue); + // Finish the Python Interpreter Py_Finalize(); diff --git a/PyWinAlfred/PyWinAlfred.vcxproj b/PyWinAlfred/PyWinAlfred.vcxproj index 378502315a..22d14e8648 100644 --- a/PyWinAlfred/PyWinAlfred.vcxproj +++ b/PyWinAlfred/PyWinAlfred.vcxproj @@ -75,6 +75,7 @@ true C:\Python27\include;$(IncludePath) C:\Python27\libs;$(LibraryPath) + $(SolutionDir)WinAlfred\bin\Debug\ false diff --git a/WinAlfred/App.config b/WinAlfred/App.config index e1eb5518f6..01c0f5391e 100644 --- a/WinAlfred/App.config +++ b/WinAlfred/App.config @@ -17,4 +17,4 @@ - + diff --git a/WinAlfred/App.xaml b/WinAlfred/App.xaml index f2fe37b419..ba0967d5dc 100644 --- a/WinAlfred/App.xaml +++ b/WinAlfred/App.xaml @@ -4,6 +4,33 @@ StartupUri="MainWindow.xaml"> +