def __init__(self, *args): DocumentWindow.__init__(self, *args) self.setAttribute(Qt.WA_DeleteOnClose) self.initStyleName() self.setProperty("style", QVariant(self.styleName)) self.setupUi(self) self.setupActions() self.graphicsView.document = self self.textView._document = self self.dashboardController = DashboardController(self)
def show_(self): if self.windowMaximized: self.showMaximized() DocumentWindow.show_(self)