Example #1
0
## to Comarch before any contribution is made. You should have received       ##
## a copy of Contribution Agreement along with TADEK bundled with this file   ##
## in the file CONTRIBUTION_AGREEMENT.pdf or see http://tadek.comarch.com     ##
## or write to [email protected]                                     ##
##                                                                            ##
################################################################################

from tadek.core import log

import view
import config
from main import MainWindow

__all__ = ["run"]


def run():
    '''
    Runs the UI application.
    '''
    # Register view classes
    for cls in config.VIEW_CLASSES:
        try:
            view.register(cls)
        except view.ViewError, err:
            log.critical(err)
    # Run the application main window
    window = MainWindow()
    window.run()