mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
qt: remove UI testapp
This commit is contained in:
parent
ad45a6e16e
commit
7256adb4d4
@ -9,7 +9,7 @@
|
||||
from PyQt5.QtCore import Qt
|
||||
from PyQt5.QtWidgets import (
|
||||
QDialog, QVBoxLayout, QHBoxLayout, QPushButton, QSpacerItem, QSizePolicy,
|
||||
QLabel, QTableView, QAbstractItemView, QApplication
|
||||
QLabel, QTableView, QAbstractItemView
|
||||
)
|
||||
|
||||
from hscommon.trans import trget
|
||||
@ -63,12 +63,3 @@ class ProblemDialog(QDialog):
|
||||
self.horizontalLayout.addWidget(self.closeButton)
|
||||
self.verticalLayout.addLayout(self.horizontalLayout)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
from ..testapp import TestApp
|
||||
app = QApplication([])
|
||||
dgapp = TestApp()
|
||||
dialog = ProblemDialog(None, dgapp)
|
||||
dialog.show()
|
||||
sys.exit(app.exec_())
|
||||
|
@ -1,24 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Created By: Virgil Dupras
|
||||
# Created On: 2010-10-04
|
||||
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
||||
#
|
||||
# This software is licensed under the "HS" License as described in the "LICENSE" file,
|
||||
# which should be included with this package. The terms are also available at
|
||||
# http://www.hardcoded.net/licenses/hs_license
|
||||
|
||||
from qtlib.recent import Recent
|
||||
|
||||
from .se.app import DupeGuru
|
||||
|
||||
class TestApp(DupeGuru):
|
||||
# Use this for as a mock for UI testing.
|
||||
def mustShowNag(self):
|
||||
pass
|
||||
|
||||
def _setup(self):
|
||||
self.prefs = self._create_preferences()
|
||||
self.prefs.load()
|
||||
self.recentResults = Recent(self, 'recentResults')
|
||||
self._setupActions()
|
||||
|
Loading…
x
Reference in New Issue
Block a user