From e4cf758129e81cf3e400a1432ec2d6604fe67a2d Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 15 Nov 2022 11:54:55 -0600 Subject: Se añade __main__ a interfaz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interfaz/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'interfaz') diff --git a/interfaz/main.py b/interfaz/main.py index c99166d..eb8d437 100644 --- a/interfaz/main.py +++ b/interfaz/main.py @@ -153,6 +153,6 @@ class App(Adw.Application): self.win = MainWindow(application=app) self.win.present() - -app = App(application_id='mx.rgg.spanishjava') -app.run(sys.argv) +if __name__ == "__main__": + app = App(application_id='mx.rgg.spanishjava') + app.run(sys.argv) -- cgit v1.2.3