# Path: gum/app.py
# PLUGINS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'fx')
# def open_(filename=None):
# def list_effects():
# def list_extensions():
# def load_all_plugins():
# 
# Path: gum/views/ui.py
# def init():
# def main_loop():
# def display_error(title, text, parent=None):
#     def __init__(self, notebook):
#     def _make_ui_manager(self):
#     def on_new_sound_loaded(self, editor, graph, sel, curs):
#     def _on_filename_changed(self, notebook, filename):
#     def _filename_update(self, filename):
#     def _update_title(self, filename=None):
#     def _open_dropped_files(self, widget, context, x, y,
#                             selection, targetType, time):
#     def display_error(self, widget, title, text):
#     def busy(method):
#         def decorated(self, *args):
#     def _do_open(self, filename):
#     def __getattr__(self, name):
#             def forward(*args):
#     def on_key_press_event(self, widget, event):
#     def effect(self, widget, *args):
#     def about(self, *args):
#     def open(self, *args):
#     def save_as(self, *args):
#     def save_selection_as(self, *args):
#     def close(self, *args):
#     def quit(self, *args):
#     def __init__(self):
#     def on_page_switch(self, notebook, _, numpage):
#     def on_filename_changed(self, widget, filename):
#     def on_error(self, widget, title, text):
#     def hide_show_tabs(self, *args):
#     def add_page(self, page):
#     def is_empty(self):
#     def close_page_by_id(self, widget):
#     def close_page(self, numpage=None):
#     def _close_page(self, numpage, force=False):
#     def _show_dialog_close(self, name):
#     def __getattr__(self, name):
#             def forward(*args):
#     def __init__(self, editor, graph, selection, cursor):
#     def must_close(self, *args):
#     def close(self, force=False):
#     def on_destroy(self, widget):
#     def emit_error(self, title, text):
#     def _update_filename(self):
#     def __getattr__(self, name):
#             def forward(*args):
# def test():
#         def __init__(self):
# class EditorWindow(gtk.Window):
# class EditorNotebook(gtk.Notebook):
# class EditorPage(gtk.VBox):
#     class FakeEditor(Fake):
#         TARGET_TYPE_TEXT = 80


from gum import app
from gum.views import ui
import sys
#!/usr/bin/env python

# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.


def run():

    # Open files passed on the command line.
    opened = False
    for filename in sys.argv[1:]:
        try:
            app.open_(filename)
            opened = True
        except Exception, e:
            ui.display_error("Error", str(e))

    # Load an empty sound if no file was open.
    if not opened:

# Path: gum/app.py
# PLUGINS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'fx')
# def open_(filename=None):
# def list_effects():
# def list_extensions():
# def load_all_plugins():
# 
# Path: gum/views/ui.py
# def init():
# def main_loop():
# def display_error(title, text, parent=None):
#     def __init__(self, notebook):
#     def _make_ui_manager(self):
#     def on_new_sound_loaded(self, editor, graph, sel, curs):
#     def _on_filename_changed(self, notebook, filename):
#     def _filename_update(self, filename):
#     def _update_title(self, filename=None):
#     def _open_dropped_files(self, widget, context, x, y,
#                             selection, targetType, time):
#     def display_error(self, widget, title, text):
#     def busy(method):
#         def decorated(self, *args):
#     def _do_open(self, filename):
#     def __getattr__(self, name):
#             def forward(*args):
#     def on_key_press_event(self, widget, event):
#     def effect(self, widget, *args):
#     def about(self, *args):
#     def open(self, *args):
#     def save_as(self, *args):
#     def save_selection_as(self, *args):
#     def close(self, *args):
#     def quit(self, *args):
#     def __init__(self):
#     def on_page_switch(self, notebook, _, numpage):
#     def on_filename_changed(self, widget, filename):
#     def on_error(self, widget, title, text):
#     def hide_show_tabs(self, *args):
#     def add_page(self, page):
#     def is_empty(self):
#     def close_page_by_id(self, widget):
#     def close_page(self, numpage=None):
#     def _close_page(self, numpage, force=False):
#     def _show_dialog_close(self, name):
#     def __getattr__(self, name):
#             def forward(*args):
#     def __init__(self, editor, graph, selection, cursor):
#     def must_close(self, *args):
#     def close(self, force=False):
#     def on_destroy(self, widget):
#     def emit_error(self, title, text):
#     def _update_filename(self):
#     def __getattr__(self, name):
#             def forward(*args):
# def test():
#         def __init__(self):
# class EditorWindow(gtk.Window):
# class EditorNotebook(gtk.Notebook):
# class EditorPage(gtk.VBox):
#     class FakeEditor(Fake):
#         TARGET_TYPE_TEXT = 80


# Path: gum/run.py
from gum import app
from gum.views import ui
import sys

#!/usr/bin/env python

# Gum sound editor (https://github.com/stackp/Gum)
# Copyright 2009 (C) Pierre Duquesne <stackp@online.fr>
# Licensed under the Revised BSD License.


def run():

    # Open files passed on the command line.
    opened = False
    for filename in sys.argv[1:]:
        try:
            app.open_(filename)
            opened = True
        except Exception, e:
            ui.display_error("Error", str(e))

    # Load an empty sound if no file was open.
    if not opened:

        app.open_()