Skip to content

Commit 09b11a8

Browse files
committed
Fix program title not being seen on Linux
Window is also set to non-resizable
1 parent 642ec17 commit 09b11a8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spatialmedia/gui.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,13 @@ def report_callback_exception(self, *args):
357357
def main():
358358
root = tk.Tk()
359359
root.tk.call('tk', 'scaling', 2.0)
360+
root.withdraw()
361+
app_window = tk.Toplevel(root, class_="Spatial Media Metadata Injector")
362+
app_window.resizable(False, False)
363+
app_window.protocol("WM_DELETE_WINDOW", root.destroy)
360364
tk.report_callback_exception = report_callback_exception
361-
app = Application(master=root)
362-
app.mainloop()
365+
Application(master=app_window)
366+
root.mainloop()
363367

364368

365369
if __name__ == "__main__":

0 commit comments

Comments
 (0)