Browse Source

Added run() function

Clara Hobbs 7 years ago
parent
commit
56bb2ccc03
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      pd-buddy-gtk.py

+ 6
- 1
pd-buddy-gtk.py View File

@@ -328,6 +328,7 @@ class Handler:
328 328
         except:
329 329
             self.on_header_sink_back_clicked(None)
330 330
 
331
+
331 332
 class Application(Gtk.Application):
332 333
 
333 334
     def __init__(self, *args, **kwargs):
@@ -354,6 +355,10 @@ class Application(Gtk.Application):
354 355
 
355 356
         self.window.present()
356 357
 
357
-if __name__ == "__main__":
358
+
359
+def run():
358 360
     app = Application()
359 361
     app.run(sys.argv)
362
+
363
+if __name__ == "__main__":
364
+    run()

Loading…
Cancel
Save