Exemple #1
0
            ConfCode.FILE_NOT_FOUND,
            ConfCode.KEY_NOT_DEFINED,
            ConfCode.KEY_NO_EXIST,
    ):
        first_run = LaunchFirstRun(debreate_app)
        if not first_run == ConfCode.SUCCESS:
            sys.exit(first_run)

        break

Debreate = MainWindow(conf_values[u'position'], conf_values[u'size'])
debreate_app.SetMainWindow(Debreate)
Debreate.InitWizard()

if conf_values[u'maximize']:
    Debreate.Maximize()

elif conf_values[u'center']:
    from system.display import CenterOnPrimaryDisplay

    # NOTE: May be a few pixels off
    CenterOnPrimaryDisplay(Debreate)

working_dir = conf_values[u'workingdir']

if parsed_path:
    project_file = parsed_path
    Logger.Debug(script_name,
                 GT(u'Opening project from argument: {}').format(project_file))

    if Debreate.OpenProject(project_file):