This commit is contained in:
Kovid Goyal 2019-06-06 08:56:43 +05:30
parent 9d025de990
commit e2190da060
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -11,6 +11,7 @@ from PyQt5.Qt import (
from calibre.constants import __appname__, numeric_version
from calibre.utils.monotonic import monotonic
from polyglot.builtins import unicode_type
class SplashScreen(QSplashScreen):
@ -36,7 +37,7 @@ class SplashScreen(QSplashScreen):
f.setPixelSize(self.total_height)
f.setItalic(True), f.setBold(True)
f = QFontMetrics(f)
self.num_ch = str(max(3, numeric_version[0]))
self.num_ch = unicode_type(max(3, numeric_version[0]))
self.footer_font = f = QFont()
f.setPointSize(self.FOOTER_SIZE)
f.setItalic(True)