mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Merge pull request #1024 from holg/master
[ADD] added PySide compability
This commit is contained in:
		
						commit
						9f7ee1cf91
					
				|  | @ -24,7 +24,11 @@ if 'PyQt4.QtGui' not in sys.modules: | |||
|   try: | ||||
|     from PyQt5.QtGui import QImage, qRgba | ||||
|   except: | ||||
|     try: | ||||
|         from PyQt4.QtGui import QImage, qRgba | ||||
|     except: | ||||
|         from PySide.QtGui import QImage, qRgba | ||||
| 
 | ||||
| else: #PyQt4 is used | ||||
|   from PyQt4.QtGui import QImage, qRgba | ||||
| 
 | ||||
|  |  | |||
|  | @ -6,6 +6,9 @@ try: | |||
| except: | ||||
|     try: | ||||
|         from PyQt4.QtGui import QImage, qRgb, qRgba | ||||
|     except: | ||||
|         try: | ||||
|             from PySide.QtGui import QImage, qRgb, qRgba | ||||
|         except: | ||||
|             # Will be skipped in setUp | ||||
|             pass | ||||
|  | @ -20,7 +23,10 @@ class TestImageQt(PillowTestCase): | |||
|             try: | ||||
|                 from PyQt4.QtGui import QImage, qRgb, qRgba | ||||
|             except: | ||||
|                 self.skipTest('PyQt4 or 5 not installed') | ||||
|                 try: | ||||
|                     from PySide.QtGui import QImage, qRgb, qRgba | ||||
|                 except: | ||||
|                     self.skipTest('PyQt4 or 5 or PySide not installed') | ||||
| 
 | ||||
|     def test_rgb(self): | ||||
|         # from https://qt-project.org/doc/qt-4.8/qcolor.html | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user