aboutsummaryrefslogtreecommitdiff
path: root/interfaz/main.py
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-11-15 11:54:55 -0600
committerIván Ávalos <avalos@disroot.org>2022-11-15 11:54:55 -0600
commite4cf758129e81cf3e400a1432ec2d6604fe67a2d (patch)
treedc6eeae4bb2619244fd7a90a0530a7afdace00a8 /interfaz/main.py
parentc364979e1c20f3b269ffc3a61e5f21b394536136 (diff)
downloadjavanol-e4cf758129e81cf3e400a1432ec2d6604fe67a2d.tar.gz
javanol-e4cf758129e81cf3e400a1432ec2d6604fe67a2d.tar.bz2
javanol-e4cf758129e81cf3e400a1432ec2d6604fe67a2d.zip
Se añade __main__ a interfaz
Diffstat (limited to 'interfaz/main.py')
-rw-r--r--interfaz/main.py6
1 files changed, 3 insertions, 3 deletions
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)