-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhostprep.py
More file actions
53 lines (41 loc) · 1.67 KB
/
hostprep.py
File metadata and controls
53 lines (41 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import sys, os
from os import remove
from collections import deque
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtGui import QStandardItem, QStandardItemModel
from PyQt5.QtWidgets import QTreeView, QFileSystemModel, QApplication, QMainWindow, qApp
from settings import settings
from functions import opensphere_functions, host_functions, vm_functions
from prep_ui import Ui_PrepCheckWindow
from prep_progress_ui import Ui_HostPrepProgressWindow
class PrepCheck(QMainWindow, Ui_PrepCheckWindow):
def cancel_btn_clicked(self):
sys.exit()
def configure_btn_clicked(self):
self.dialog = HostPrepProgress(self)
self.dialog.show()
self.hide()
def __init__(self, parent=None):
super(PrepCheck, self).__init__(parent)
qApp.installEventFilter(self)
self.setupUi(self)
self.configure_btn.clicked.connect(self.configure_btn_clicked)
self.cancel_btn.clicked.connect(self.cancel_btn_clicked)
cfg = settings.get_working_config()
cfgList = cfg.split(':')
host = cfgList[0].strip()
self.host_Label.setText(host)
self.show()
class HostPrepProgress(QMainWindow, Ui_HostPrepProgressWindow):
def continue_btn_clicked(self):
from opensphere import OpenSphere
self.dialog = OpenSphere(self)
self.dialog.show()
self.hide()
def __init__(self, parent=None):
super(HostPrepProgress, self).__init__(parent)
qApp.installEventFilter(self)
self.setupUi(self)
self.continue_btn.clicked.connect(self.continue_btn_clicked)
#self.host_Label.setText(host)
self.show()