renamed Window class to SubsetManagerWindow

This commit is contained in:
iLLiCiTiT 2021-11-12 19:33:15 +01:00
parent 318a45a37c
commit 953ce5f054
2 changed files with 7 additions and 7 deletions

View file

@ -1,9 +1,9 @@
from .app import (
from .window import (
show,
Window
SubsetManagerWindow
)
__all__ = (
"show",
"Window"
"SubsetManagerWindow"
)

View file

@ -20,9 +20,9 @@ module = sys.modules[__name__]
module.window = None
class Window(QtWidgets.QDialog):
class SubsetManagerWindow(QtWidgets.QDialog):
def __init__(self, parent=None):
super(Window, self).__init__(parent=parent)
super(SubsetManagerWindow, self).__init__(parent=parent)
self.setWindowTitle("Subset Manager 0.1")
self.setObjectName("SubsetManager")
if not parent:
@ -177,8 +177,8 @@ class Window(QtWidgets.QDialog):
editable = hasattr(host, "save_instances")
self.details_widget.set_editable(editable)
def show(self, *args, **kwargs):
super(Window, self).show(*args, **kwargs)
def showEvent(self, *args, **kwargs):
super(SubsetManagerWindow, self).showEvent(*args, **kwargs)
if self._first_show:
self._first_show = False
self.refresh()