(self, *args)
| 665 | self.window.raise_() |
| 666 | |
| 667 | def destroy(self, *args): |
| 668 | # check for qApp first, as PySide deletes it in its atexit handler |
| 669 | if QtWidgets.QApplication.instance() is None: |
| 670 | return |
| 671 | if self.window._destroying: |
| 672 | return |
| 673 | self.window._destroying = True |
| 674 | if self.toolbar: |
| 675 | self.toolbar.destroy() |
| 676 | self.window.close() |
| 677 | super().destroy() |
| 678 | |
| 679 | def get_window_title(self): |
| 680 | return self.window.windowTitle() |