mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
...
This commit is contained in:
parent
e5d486a28c
commit
3bd8285429
@ -1054,7 +1054,7 @@ def rating_font():
|
|||||||
return _rating_font
|
return _rating_font
|
||||||
|
|
||||||
def elided_text(text, font=None, width=300, pos='middle'):
|
def elided_text(text, font=None, width=300, pos='middle'):
|
||||||
''' Return a version of text that is n wider than width pixels when
|
''' Return a version of text that is no wider than width pixels when
|
||||||
rendered, replacing characters from the left, middle or right (as per pos)
|
rendered, replacing characters from the left, middle or right (as per pos)
|
||||||
of the string with an ellipsis. Results in a string much closer to the
|
of the string with an ellipsis. Results in a string much closer to the
|
||||||
limit than Qt's elidedText().'''
|
limit than Qt's elidedText().'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user