webview
Advanced tools
+1
-1
| Metadata-Version: 1.0 | ||
| Name: webview | ||
| Version: 0.1.4 | ||
| Version: 0.1.5 | ||
| Summary: Python WebView bindings | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/zserge/webview |
+6
-4
| #!/bin/env python | ||
| import os | ||
| import commands | ||
| import subprocess | ||
| import shutil | ||
@@ -37,4 +37,6 @@ | ||
| def pkgconfig(flags): | ||
| return commands.getoutput( | ||
| "pkg-config %s gtk+-3.0 webkit2gtk-4.0" % flags) | ||
| return subprocess.check_output( | ||
| 'pkg-config %s gtk+-3.0 webkit2gtk-4.0' % flags, | ||
| shell=True, | ||
| stderr=subprocess.STDOUT).decode('utf-8') | ||
@@ -63,3 +65,3 @@ define_macros = [("WEBVIEW_GTK", '1')] | ||
| name='webview', | ||
| version='0.1.4', | ||
| version='0.1.5', | ||
| description='Python WebView bindings', | ||
@@ -66,0 +68,0 @@ author='Serge Zaitsev', |
+31
-9
@@ -158,3 +158,3 @@ #include <Python.h> | ||
| {"run", (PyCFunction)WebView_run, METH_NOARGS, "..."}, | ||
| {"loop", (PyCFunction)WebView_loop, METH_KEYWORDS, "..."}, | ||
| {"loop", (PyCFunction)WebView_loop, METH_KEYWORDS | METH_VARARGS, "..."}, | ||
| {"terminate", (PyCFunction)WebView_terminate, METH_NOARGS, "..."}, | ||
@@ -164,3 +164,3 @@ {"dispatch", (PyCFunction)WebView_dispatch, METH_VARARGS, "..."}, | ||
| {"inject_css", (PyCFunction)WebView_inject_css, METH_VARARGS, "..."}, | ||
| {"dialog", (PyCFunction)WebView_dialog, METH_KEYWORDS, "..."}, | ||
| {"dialog", (PyCFunction)WebView_dialog, METH_KEYWORDS | METH_VARARGS, "..."}, | ||
| {"set_title", (PyCFunction)WebView_set_title, METH_VARARGS, "..."}, | ||
@@ -218,16 +218,35 @@ {"set_fullscreen", (PyCFunction)WebView_set_fullscreen, METH_VARARGS, | ||
| #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */ | ||
| #define PyMODINIT_FUNC void | ||
| #if PY_MAJOR_VERSION >= 3 | ||
| static struct PyModuleDef moduledef = { | ||
| PyModuleDef_HEAD_INIT, | ||
| "webview", | ||
| "Example module", | ||
| 0, | ||
| module_methods, | ||
| NULL, | ||
| NULL, | ||
| NULL, | ||
| NULL | ||
| }; | ||
| #define MODINIT_ERROR NULL | ||
| #define MODINIT_NAME PyInit_webview | ||
| #else | ||
| #define MODINIT_ERROR | ||
| #define MODINIT_NAME initwebview | ||
| #endif | ||
| PyMODINIT_FUNC initwebview(void) { | ||
| PyMODINIT_FUNC MODINIT_NAME(void) { | ||
| PyObject *m; | ||
| if (PyType_Ready(&WebViewType) < 0) { | ||
| return; | ||
| return MODINIT_ERROR; | ||
| } | ||
| m = Py_InitModule3("webview", module_methods, | ||
| "Example module that creates an extension type."); | ||
| #if PY_MAJOR_VERSION >= 3 | ||
| m = PyModule_Create(&moduledef); | ||
| #else | ||
| m = Py_InitModule3("webview", module_methods, | ||
| "Example module that creates an extension type."); | ||
| #endif | ||
| if (m == NULL) { | ||
| return; | ||
| return MODINIT_ERROR; | ||
| } | ||
@@ -237,2 +256,5 @@ | ||
| PyModule_AddObject(m, "WebView", (PyObject *)&WebViewType); | ||
| #if PY_MAJOR_VERSION >= 3 | ||
| return m; | ||
| #endif | ||
| } |
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
76507
2.46%60
3.45%