3 ms·
The Telegram client is a good example of how to do this right [0]. You can acheive this in python w/ pyQt/pySide as well... just include a QWebView and hook in
by jszymborski 9y ago
The Telegram client is a good example of how to do this right [0].
You can acheive this in python w/ pyQt/pySide as well... just include a QWebView and hook into the javascript [1].
Avoiding the whole server & network stack makes things run obviously lighter.
[0] https://github.com/telegramdesktop/tdesktop https://github.com/telegramdesktop/tdesktop
[1] https://stackoverflow.com/questions/6447011/pyqt-pyside-webkit-and-exposing-methods-from-to-javascript https://stackoverflow.com/questions/6447011/pyqt-pyside-webk...
- kodablah 9y agoI believe QWebView w/ QtWebKit was deprecated in favor of QWebEngine which is Chromium thereby causing the same problems as Electron (bulky, multi-process which is the way of the browser these days). Granted QtWebKit appears to be maintained in a fork at [0]. If someone wanted to use Chrome, a more bare-bones approach w/ Qt might be CEF. An example in Python is here [1]. 0 - https://github.com/annulen/webkit https://github.com/annulen/webkit (see the wiki) 1 - https://github.com/cztomczak/cefpython/blob/master/examples/qt.py https://github.com/cztomczak/cefpython/blob/master/examples/...