Flush the log file to ensure all output is written.
(self)
| 235 | try: |
| 236 | self.log_file.flush() |
| 237 | except Exception: |
| 238 | pass |
| 239 | |
| 240 | |
| 241 | class DesktopPuppetWindow(Adw.ApplicationWindow): |
| 242 | """Main application window.""" |
| 243 | |
| 244 | def __init__(self, app): |
| 245 | super().__init__(application=app, title="DesktopPuppet Controller") |
| 246 | self.set_default_size(900, 700) |