You are not logged in.
Pages: 1
As noted in PySide package tracker ( https://git.archlinux.org/svntogit/comm … hon-pyside ) Webkit support has been removed from Arch's PySide packages.
I understand the reasoning behind this: https://www.archlinux.org/todo/phasing-out-qtwebkit/
However PySide/Webkit applications on Arch are now unusable. Apps with html/javascript directly compiled in, no longer function.
Is there a plan to re-establish PySide/Webkit functionality in Arch? Could the PySide/Webkit libraries be moved to a User-Repository package for those still using it (at their own risk) until QtWebEngine is fully supported in PySide?
Thank you.
Last edited by plutosrings (2017-03-02 03:57:29)
Offline
Maybe not an answer to your question that you asked, but you can move to PyQt5 instead of PySide, and qt5-webkit. That will give you full access to QtWebKit.
And it's all in the repo's. And the online docs are ok.
qt5-base qt5-webkit python-pyqt5 pyqt5-common
Example of one of my simple scripts:
#!/usr/bin/env python
#Get source with scripts run using PyQt5
import sys
import signal
from PyQt5.QtCore import Qt, QUrl
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebKitWidgets import QWebPage
agent = 'Mozilla/5.0 (Windows NT 6.2; x86_64; rv:48.0) Gecko/20100101 Firefox/51.0'
class Source_W_Scripts(QWebPage):
    def __init__(self, url, file):
        QWebPage.__init__(self)
        self._url = url
        self._file = file
        
    def userAgentForUrl(self, Qurl):
        return (agent)
    def get_it(self):
        signal.signal(signal.SIGINT, signal.SIG_DFL)
        self.loadFinished.connect(self.finished_loading)
        self.mainFrame().load(QUrl(self._url))
    def finished_loading( self, result ):
        with open(self._file, 'w') as f:
            f.write(self.mainFrame().toHtml())
        sys.exit(0)
def main():
    url = input('Enter/Paste url for source: ')
    out_file = input('Enter output file name: ')
    app = QApplication([])
    dloader = Source_W_Scripts(url, out_file)
    dloader.get_it()
    sys.exit(app.exec_())
if __name__ == '__main__':
    main()Posted this from a web browser made with PyQt5 and QtWebKit.
Offline
Thanks for the suggestion. I went ahead and started using PyQt5 over PySide and it works perfectly.
Offline
Pages: 1