--- a/Helpviewer/SpeedDial/SpeedDial.py Tue Oct 15 22:03:54 2013 +0200 +++ b/Helpviewer/SpeedDial/SpeedDial.py Fri Oct 18 23:00:41 2013 +0200 @@ -15,8 +15,8 @@ import os -from PyQt4.QtCore import pyqtSignal, pyqtSlot, QObject, QCryptographicHash, QByteArray, \ - QUrl, qWarning +from PyQt4.QtCore import pyqtSignal, pyqtSlot, QObject, QCryptographicHash, \ + QByteArray, QUrl, qWarning from PyQt4.QtWebKit import QWebPage from E5Gui import E5MessageBox @@ -135,8 +135,9 @@ else: imgSource = QUrl.fromLocalFile(imgSource).toString() - self.__initialScript += "addBox('{0}', '{1}', '{2}');\n".format( - page.url, page.title, imgSource) + self.__initialScript += \ + "addBox('{0}', '{1}', '{2}');\n".format( + page.url, page.title, imgSource) return self.__initialScript @@ -146,7 +147,8 @@ @return name of the user agents file (string) """ - return os.path.join(Utilities.getConfigDir(), "browser", "speedDial.xml") + return os.path.join( + Utilities.getConfigDir(), "browser", "speedDial.xml") def __initialize(self): """ @@ -186,8 +188,10 @@ self.pagesChanged.emit() else: allPages = \ - 'url:"http://eric-ide.python-projects.org/"|title:"Eric Web Site";'\ - 'url:"http://www.riverbankcomputing.com/"|title:"PyQt4 Web Site";'\ + 'url:"http://eric-ide.python-projects.org/"|'\ + 'title:"Eric Web Site";'\ + 'url:"http://www.riverbankcomputing.com/"|'\ + 'title:"PyQt4 Web Site";'\ 'url:"http://qt.digia.com/"|title:"Qt Web Site";'\ 'url:"http://blog.qt.digia.com/"|title:"Qt Blog";'\ 'url:"http://www.python.org"|title:"Python Language Website";'\ @@ -205,8 +209,9 @@ self.__webPages, self.__pagesPerRow, self.__speedDialSize): E5MessageBox.critical(None, self.trUtf8("Saving Speed Dial data"), - self.trUtf8("""<p>Speed Dial data could not be saved to <b>{0}</b></p>""" - ).format(speedDialFile)) + self.trUtf8( + """<p>Speed Dial data could not be saved to""" + """ <b>{0}</b></p>""").format(speedDialFile)) else: self.speedDialSaved.emit() @@ -378,8 +383,9 @@ page.broken = True else: if not image.save(fileName): - qWarning("SpeedDial.__thumbnailCreated: Cannot save thumbnail to {0}" - .format(fileName)) + qWarning( + "SpeedDial.__thumbnailCreated: Cannot save thumbnail" + " to {0}".format(fileName)) fileName = QUrl.fromLocalFile(fileName).toString() @@ -392,7 +398,6 @@ frame.evaluateJavaScript("setTitleToUrl('{0}', '{1}');".format( url, title)) -## thumbnailer.thumbnailCreated.disconnect(self.__thumbnailCreated) thumbnailer.deleteLater() self.__thumbnailers.remove(thumbnailer)