eric6/WebBrowser/SpeedDial/SpeedDial.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
101 @return name of the image file (string) 101 @return name of the image file (string)
102 """ 102 """
103 return os.path.join( 103 return os.path.join(
104 self.__thumbnailsDirectory, 104 self.__thumbnailsDirectory,
105 str(QCryptographicHash.hash(QByteArray(url.encode("utf-8")), 105 str(QCryptographicHash.hash(QByteArray(url.encode("utf-8")),
106 QCryptographicHash.Md5).toHex(), encoding="utf-8") + ".png") 106 QCryptographicHash.Algorithm.Md5).toHex(), encoding="utf-8"
107 ) + ".png")
107 108
108 def initialScript(self): 109 def initialScript(self):
109 """ 110 """
110 Public method to get the 'initial' JavaScript script. 111 Public method to get the 'initial' JavaScript script.
111 112

eric ide

mercurial