On Wed May 11 22:41:13 BST 2011, Gelonida G wrote:
def patch_agent():
old_userAgentForUrl = QWebPage.userAgentForUrl
def new_userAgentForUrl(self, url):
for demo purposes I just added logging
rslt = old_userAgentForUrl(self, url)
print agent is %s % rslt
On Fri May 13 02:23:30 BST 2011, Kay Hayen wrote:
thanks in advance for any explanations or suggestions how to change the
user agent 'globally'
Why do you try to monkeypatch it? Subclassing QWebView and implementing
just the overridden method is much cleaner and doesn't look like a
On Thu, 12 May 2011 11:59:07 -0700, Selim Tuvi
selim.t...@pdi.dreamworks.com wrote:
Hi, could you explain the reasons why QProxyStyle is not exposed in
PyQt4?
Thanks
-Selim
PyQt doesn't wrap anything that might be implemented as a plugin which,
for some reason, includes QProxyStyle.
Phil