[PyQt] QWebView createWindow() and authentication

2011-02-17 Thread alanm
I have an application that accesses password-protected web pages using QWebView. The pages use apache authentication, and I authenticate the user by prompting for login & password and storing those values in the MainWindow object and adding them to the URL before loading it. I have added support

[PyQt] Optimizing WebView display

2010-08-30 Thread alanm
I wrote a small browser in PyQT4 using QWebView, of course. The browser runs well and does what I need, but when I deployed it to my thin clients, it was far to slow to use. In fact, most modern browsers were; I had to settle on Epiphany because all the other browsers I tried were far to slow

Re: [PyQt] Processing signals from a called method while the method executes

2010-07-02 Thread alanm
On Friday 02 July 2010 12:03:29 pm Jan Haag wrote: > On 7/2/10 3:38 PM, alanm wrote: > > On Friday 02 July 2010 1:17:06 am Andreas Pakulat wrote: > >> Don't block the event-loop with your processor. The signals are > >> delivered as you expect, but the widget is no

Re: [PyQt] Synchronous WebView.load()

2010-07-02 Thread alanm
On Friday 02 July 2010 3:04:40 am you wrote: > On Fri, 02 Jul 2010 00:31:40 -0500, alan moore wrote: > >> As I understand it, the webview doesn't actually load the page and > > update > > >> itself until the method call returns; at which point it loads the new > >> page and > >> updates the hist

Re: [PyQt] Processing signals from a called method while the method executes

2010-07-02 Thread alanm
On Friday 02 July 2010 1:17:06 am Andreas Pakulat wrote: > > Don't block the event-loop with your processor. The signals are > delivered as you expect, but the widget is not redrawn with that > message. The reason is that your processing blocks the Qt event loop and > hence no painting is done. >

Re: [PyQt] Synchronous WebView.load()

2010-07-01 Thread alanm
On Thursday 01 July 2010 2:13:47 pm alanm wrote: > I have an app with a QWebView, and I'm trying to implement a "reset" button > that will clear the history and return the user to the start page. > > The method looks like this: > > def reset_browser(self): >

[PyQt] Synchronous WebView.load()

2010-07-01 Thread alanm
I have an app with a QWebView, and I'm trying to implement a "reset" button that will clear the history and return the user to the start page. The method looks like this: def reset_browser(self): self.webview.load(self.startUrl) self.webview.history().clear() The problem with the method

[PyQt] QActions on a toolbar and mnemonics

2010-07-01 Thread alanm
I have a QToolBar created from a QMainWindow's addToolBar() method. I have created a number of QActions with mnemonics in the name and shortcut keys assigned by using the QKeySequence.mnemonic() method to extract the mnemonic from the QAction's name. The problem is that when I add the QActions

Re: [PyQt] QWebView and https

2010-05-27 Thread alanm
On Thursday 27 May 2010 12:07:27 pm Kovid Goyal wrote: > Look at the sourcecode from the spynner project, its in python and IIRC > does this. > > Kovid. > Thanks! I took your suggestion, and found the answer I needed in spynner. Apparently when I tried to follow David's advice I got the signal

Re: [PyQt] QWebView and https

2010-05-27 Thread alanm
On Thursday 27 May 2010 10:49:24 am Russell Valentine wrote: > Adding your the CA certificate should be easier then ignore all errors. > I havn't tried it but I think it would be something like this. > > config = QSslConfiguration.defaultConfiguration() > certs=config.caCertificates() > > certs.

Re: [PyQt] QWebView and https

2010-05-27 Thread alanm
On Thursday 27 May 2010 10:41:08 am David Boddie wrote: > You should just be able to set the network access manager on the QWebPage > returned by the QWebView's page() method. I don't know if this will do > everything you need. > > I'm curious about the need to subclass QNetworkAccessManager. I w

Re: [PyQt] QWebView and https

2010-05-27 Thread alanm
On Monday 10 May 2010 10:47:58 pm alan moore wrote: > After being fed up with the kiosk modes offered by various browsers, I'm > taking another crack at writing my own minimal browser with pyqt and > QtWebKit for a kiosk application. > > Everything is working great, and I'm able to get all the fea

Re: Portability: [Was: Re: [PyQt] QWebKit issue with certain         URLs]

2008-09-24 Thread alanm
Apart from the fact that I put "PyQT4" instead of "PyQt4" (oops), it should work fine. The same code runs on WinXP and Linux for me. Are you using the latest version of PyQt4 ? On Wednesday 24 September 2008 6:00:05 am you wrote: > So I tried to try this... being (currently) a PyQt Windows use