I used to do it by attaching an object  self.page().mainFrame().addToJavaScriptWindowObject("js_interface", self.jsi)   In 5.7 I do:  self.page().setWebChannel(self.jsi)   But I understandibly get a JavaScript error when I try to access expos...
I am planning to use PyQt to control an embedded WebKit browser on the server side.  I have some inherit application logic in Javascript in the HTML page running inside WebKit.  How could I communicate from the host process (Python, PyQt) with Javasc...
How to dynamically add components in QML? I refered this link to add a component(Rectangle component) into main.qml window upon a button click in same window. 'Ubuntu.Components' is not installed in my qt. I don't know javascript. "co...
I want to make a function in PyQt evaluateJavaScript() (or may be similar one) and than display  a result of evaluated function. Real function will be much bigger, and it might not be a string.  I'm only interesting in how to create a function in...
I was trying to get browser description using JavaScript, and got strange result:  productSub: 20100101 # When I open it with my Mozila FF browser productSub: 20030107 # when I open it with PyQt4  vendorSub: # nothing in here with my Mozila FF vendor...
I am working on a PyQt application that has an SVG viewer based on QWebKit. Initially the SVG file is generated by an external application (LilyPond), but we want to edit the SVG in the viewer using JavaScript.  Basically it's working pretty well...
I'm trying to scrape this page using PyQt4 but for some reason the text elements  for <dt> tags are not showing up when I search using BeautifulSoup.  I'm pretty new to using PyQt4 so I'm not sure what's going wrong here. I get...
I wanted to create a simple GUI app which selects one of the MP3 files and plays it. Can't seem to find the best library for doing that with PyQT. Therefore need some recommendation on it. Don't mind switch to JavaFX or something if it has mo...
I'm just starting out with javascript and Qt so bear with me   My issue is with the runJavaScript method. I can't seem to get the callback function to run with a returned value that's delayed. For example, the following prints None.  js =...
How do I get the page ElementById so I can fill the input value?  import sys from PyQt5 import QtWebEngineWidgets from PyQt5.QtCore import * from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import * from PyQt5.QtWidgets import QAction from PyQt5.Qt...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.