Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7f15ac8b9 | ||
|
|
696b8c7cd2 | ||
|
|
ef95a822c5 | ||
|
|
26c6ca6bc8 |
3
dist/vdiclient.json
vendored
3
dist/vdiclient.json
vendored
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"upgrade_guid" : "46cbad92-353e-4b28-9bee-83950991dad8",
|
||||
"version" : "1.0.9",
|
||||
"version" : "1.1.0",
|
||||
"product_name" : "VDI Client",
|
||||
"manufacturer" : "Josh Patten",
|
||||
"name" : "VDI Client",
|
||||
"name_base" : "vdiclient",
|
||||
"arch": 64,
|
||||
"comments" : "This is the Proxmox VDI client. This client interfaces with Proxmox requires that virt-viewer be installed.",
|
||||
"installdir" : "VDIClient",
|
||||
"installscope" : "perMachine",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
pip install pyinstaller
|
||||
pip install proxmoxer
|
||||
pip install PySimpleGUIQt
|
||||
pip install PySimpleGUI
|
||||
pip install requests
|
||||
pip install pywin32
|
||||
@@ -1,6 +1,4 @@
|
||||
#!/bin/bash
|
||||
pip3 install proxmoxer
|
||||
pip3 install PySimpleGUIQt
|
||||
# If PySimpleGUIQt fails, VDIClient will fall back to PySimpleGUI
|
||||
pip3 install PySimpleGUI
|
||||
pip3 install requests
|
||||
|
||||
15
vdiclient.py
15
vdiclient.py
@@ -1,11 +1,7 @@
|
||||
#!/usr/bin/python3
|
||||
import proxmoxer # pip install proxmoxer
|
||||
try:
|
||||
import PySimpleGUIQt as sg # pip install PySimpleGUIQt
|
||||
gui = 'QT'
|
||||
except ImportError:
|
||||
import PySimpleGUI as sg # pip install PySimpleGUI
|
||||
gui = 'TK'
|
||||
import PySimpleGUI as sg # pip install PySimpleGUI
|
||||
gui = 'TK'
|
||||
import requests
|
||||
from configparser import ConfigParser
|
||||
import random
|
||||
@@ -154,6 +150,7 @@ def win_popup(message):
|
||||
layout = [[sg.Text(message)]]
|
||||
window = sg.Window('Message', layout, no_titlebar=True, keep_on_top=True, finalize=True)
|
||||
window.bring_to_front()
|
||||
_, _ = window.read(timeout=1) # Fixes a black screen bug
|
||||
return window
|
||||
|
||||
def win_popup_button(message, button):
|
||||
@@ -190,7 +187,7 @@ def getvms():
|
||||
vms = []
|
||||
try:
|
||||
for vm in G.proxmox.cluster.resources.get(type='vm'):
|
||||
if vm['template']:
|
||||
if 'template' in vm and vm['template']:
|
||||
continue
|
||||
if G.guest_type == 'both':
|
||||
vms.append(vm)
|
||||
@@ -484,4 +481,6 @@ def main():
|
||||
return 0
|
||||
else:
|
||||
return
|
||||
sys.exit(main())
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
||||
Reference in New Issue
Block a user