mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Do not attempt to subclass QImage if Qt is not installed
This commit is contained in:
		
							parent
							
								
									b318595666
								
							
						
					
					
						commit
						fa1c4bffaf
					
				| 
						 | 
					@ -147,6 +147,7 @@ def toqpixmap(im):
 | 
				
			||||||
# @param im A PIL Image object, or a file name (given either as Python
 | 
					# @param im A PIL Image object, or a file name (given either as Python
 | 
				
			||||||
#     string or a PyQt string object).
 | 
					#     string or a PyQt string object).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if qt_is_installed:
 | 
				
			||||||
    class ImageQt(QImage):
 | 
					    class ImageQt(QImage):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        def __init__(self, im):
 | 
					        def __init__(self, im):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user