コード例 #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)
コード例 #2
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)
コード例 #3
0
ファイル: 49-table_view.py プロジェクト: mnabeelp/PyGUI
 def __init__(self, data):
     Model.__init__(self)
     self.data = data
コード例 #4
0
 def __init__(self, **kwds):
     self._windows = []
     Model.__init__(self, **kwds)
     application()._add_document(self)
コード例 #5
0
ファイル: Core.py プロジェクト: Team1541/SWProject
def main():
    import sys
    app = qt.QtWidgets.QApplication(sys.argv)
    MainWindow = Model.MainWindow()
    MainWindow.show()
    sys.exit(app.exec_())
コード例 #6
0
 def __init__(self, **kwds):
     self._windows = []
     Model.__init__(self, **kwds)
     application()._add_document(self)