If window is open and alive - raise it, open otherwise
(cls, parent, *args, forceReopen=False, **kwargs)
| 56 | |
| 57 | @classmethod |
| 58 | def openOne(cls, parent, *args, forceReopen=False, **kwargs): |
| 59 | """If window is open and alive - raise it, open otherwise""" |
| 60 | if not cls._instance or forceReopen: |
| 61 | if cls._instance: |
| 62 | cls._instance.Close() |
| 63 | frame = cls(parent, *args, **kwargs) |
| 64 | cls._instance = frame |
| 65 | frame.Show() |
| 66 | else: |
| 67 | cls._instance.Raise() |
| 68 | return cls._instance |
| 69 | |
| 70 | |
| 71 | def OnSuppressedAction(self, event): |
no test coverage detected