Example #1
0
 def destroy(self):
     """Destroy any associated windows, then destroy document contents."""
     #print "Document.destroy:", self ###
     for win in self._windows[:]:
         win.destroy()
     application()._remove_document(self)
     self.destroy_contents()
     Model.destroy(self)
 def destroy(self):
     """Destroy any associated windows, then destroy document contents."""
     #print "Document.destroy:", self ###
     for win in self._windows[:]:
         win.destroy()
     application()._remove_document(self)
     self.destroy_contents()
     Model.destroy(self)
Example #3
0
 def __init__(self, data):
     Model.__init__(self)
     self.data = data
Example #4
0
 def __init__(self, **kwds):
     self._windows = []
     Model.__init__(self, **kwds)
     application()._add_document(self)
Example #5
0
def main():
    import sys
    app = qt.QtWidgets.QApplication(sys.argv)
    MainWindow = Model.MainWindow()
    MainWindow.show()
    sys.exit(app.exec_())
 def __init__(self, **kwds):
     self._windows = []
     Model.__init__(self, **kwds)
     application()._add_document(self)