Added project wizard gui test

This commit is contained in:
Veronica K. B. Olsen
2020-08-11 22:14:48 +02:00
parent a46803232c
commit dbdef444a1
4 changed files with 180 additions and 37 deletions
+7
View File
@@ -5,6 +5,8 @@
from os import path, mkdir
from itertools import chain
from PyQt5.QtWidgets import qApp
def ensureDir(theDir):
if not path.isdir(theDir):
mkdir(theDir)
@@ -60,3 +62,8 @@ def cmpList(listOne, listTwo):
if flatOne[i] != flatTwo[i]:
return False
return True
def getGuiItem(theName):
for qWidget in qApp.topLevelWidgets():
if qWidget.objectName() == theName:
return qWidget