if event == "_generate_UART_":
        BR = UART.BUDRATE(int(values["_BAUDRATE_"]))
        PARITY = UART.Parit_Bit(values["_Parity_"])
        STOP = UART.StopBits(values["_Stop_"])
        DATA = UART.Data_Bits(values["_Data_"])

        UART.UART_write_file(BR, PARITY, STOP, DATA)
        file = open("UART.c", "r")
        data = file.read()
        window['-CODE_UART-'].update(value=data, justification="left")

    if event == "_generate_Timer_":
        ret = Timer.modes(Timer_mode_layout)

        Timer.Intr(Timer_mode_layout, values["_Interrupt_"])
        Timer.Prescalar(values["_Prescaler_"])

        if ret == 'Nor':
            Timer.oc0(Timer_mode_layout, values["_optionsNor_"])
        if ret == 'OC':
            Timer.oc0(Timer_mode_layout, values["_optionsOC_"])
        if ret == 'fast':
            Timer.Duty_fun(values["_DC_fast_"])
            Timer.oc0(Timer_mode_layout, values["_options_PWMF_"])
        if ret == 'phase':
            Timer.oc0(Timer_mode_layout, values["_options_PWMP_"])
            Timer.Duty_fun(values["_DC_phase_"])

        file = open("Timer.c", "r")
        data = file.read()
        window['-CODE_Timer-'].update(value=data, justification="left")