Remove dependence of main GUI class in project class
This commit is contained in:
+15
-2
@@ -19,14 +19,15 @@ You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from PyQt5.QtCore import QObject
|
||||
from PyQt5.QtGui import QPixmap
|
||||
from PyQt5.QtWidgets import QWidget
|
||||
|
||||
|
||||
# =========================================================================== #
|
||||
# Mock GUI
|
||||
# =========================================================================== #
|
||||
|
||||
class MockGuiMain(QObject):
|
||||
class MockGuiMain(QWidget):
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
@@ -98,6 +99,18 @@ class MockStatusBar:
|
||||
# END Class MockStatusBar
|
||||
|
||||
|
||||
class MockTheme:
|
||||
|
||||
def __init__(self):
|
||||
self.baseIconSize = 10
|
||||
return
|
||||
|
||||
def getPixmap(self, *a):
|
||||
return QPixmap()
|
||||
|
||||
# END Class MockTheme
|
||||
|
||||
|
||||
class MockApp:
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user