Update vdiclient.py
Fallback to Tkinter if QT not available.
This commit is contained in:
		
							parent
							
								
									21c061ebfc
								
							
						
					
					
						commit
						2368e7c4a5
					
				@ -1,6 +1,9 @@
 | 
				
			|||||||
#!/usr/bin/python3
 | 
					#!/usr/bin/python3
 | 
				
			||||||
import proxmoxer # pip install proxmoxer
 | 
					import proxmoxer # pip install proxmoxer
 | 
				
			||||||
 | 
					try:
 | 
				
			||||||
	import PySimpleGUIQt as sg # pip install PySimpleGUIQt
 | 
						import PySimpleGUIQt as sg # pip install PySimpleGUIQt
 | 
				
			||||||
 | 
					except ImportError:
 | 
				
			||||||
 | 
						import PySimpleGUI as sg # pip install PySimpleGUI
 | 
				
			||||||
import requests
 | 
					import requests
 | 
				
			||||||
from configparser import ConfigParser
 | 
					from configparser import ConfigParser
 | 
				
			||||||
import random
 | 
					import random
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user