mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-10 00:20:57 +03:00
Merge pull request #5788 from radarhere/display_title
Use title for display
This commit is contained in:
commit
7250e3db52
|
@ -189,8 +189,10 @@ class UnixViewer(Viewer):
|
||||||
class DisplayViewer(UnixViewer):
|
class DisplayViewer(UnixViewer):
|
||||||
"""The ImageMagick ``display`` command."""
|
"""The ImageMagick ``display`` command."""
|
||||||
|
|
||||||
def get_command_ex(self, file, **options):
|
def get_command_ex(self, file, title=None, **options):
|
||||||
command = executable = "display"
|
command = executable = "display"
|
||||||
|
if title:
|
||||||
|
command += f" -name {quote(title)}"
|
||||||
return command, executable
|
return command, executable
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user