mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
9d025de990
commit
e2190da060
@ -11,6 +11,7 @@ from PyQt5.Qt import (
|
|||||||
|
|
||||||
from calibre.constants import __appname__, numeric_version
|
from calibre.constants import __appname__, numeric_version
|
||||||
from calibre.utils.monotonic import monotonic
|
from calibre.utils.monotonic import monotonic
|
||||||
|
from polyglot.builtins import unicode_type
|
||||||
|
|
||||||
|
|
||||||
class SplashScreen(QSplashScreen):
|
class SplashScreen(QSplashScreen):
|
||||||
@ -36,7 +37,7 @@ class SplashScreen(QSplashScreen):
|
|||||||
f.setPixelSize(self.total_height)
|
f.setPixelSize(self.total_height)
|
||||||
f.setItalic(True), f.setBold(True)
|
f.setItalic(True), f.setBold(True)
|
||||||
f = QFontMetrics(f)
|
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()
|
self.footer_font = f = QFont()
|
||||||
f.setPointSize(self.FOOTER_SIZE)
|
f.setPointSize(self.FOOTER_SIZE)
|
||||||
f.setItalic(True)
|
f.setItalic(True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user