def main(): main_space() fonts.tittle(screen, TEXT[2]) screen.erase() screen.refresh() escape = True opt(5, 'normal')
def up_down(num): fonts.tittle(screen, TEXT[2]) if num == 4: screen.border() line = x - 3 group() screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Iniciar sesion ', line, animation, flicker) elif num == 3: screen.border() line = x - 1 group() screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Crear cuenta ', line, animation, flicker) elif num == 2: screen.border() line = x + 1 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Seguir Demo ', line, animation, flicker) elif num == 1: screen.border() line = x + 3 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Atras ', line, animation, flicker)
def main(screen): screen.border() fonts.tittle(screen, '~ O P C I O N E S ~') x2 = x - 5 screen.addstr(x2, 3, 'Parpadeo', curses.color_pair(2) | curses.A_BOLD) screen.refresh() opt(1, True)
def opt(num, opt): screen.border() escape = False fonts.tittle(screen, TEXT[2]) up_down(num) option = str(opt) while escape == False: key = screen.getch(2, 1) if key == 258: num -= 1 if num < 1: num = 1 option = OPTION[num] screen.border() up_down(num) escape = False elif key == 259: num += 1 if num > 4: num = 4 option = OPTION[num] screen.border() up_down(num) escape = False elif key in [curses.KEY_ENTER, ord('\n'), 10]: escape = True curses.endwin() if option == ('exit'): main_exit(num) elif option == ('options'): process(3) elif option == ('about'): submenu.main() #------------------------------------------------------EDIT---------------------- elif option == ('start'): process(4) elif key == curses.KEY_RESIZE: screen.erase() screen.refresh() escape = True curses.endwin() fonts.error()
def main_exit(screen): screen.border() fonts.tittle(screen, '~ O P C I O N E S ~') x2 = x screen.addstr(x2, 3, 'Parpadeo', curses.color_pair(2) | curses.A_BOLD) curses.napms(user.animation_config) screen.erase() screen.refresh() curses.endwin() options.main(5)
def up_down(num): fonts.tittle(screen, TEXT[2]) if num == 5: screen.border() line = x - 5 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Normal ', line, animation, flicker) elif num == 4: screen.border() line = x - 3 group() screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Hacking ', line, animation, flicker | curses.color_pair(2)) elif num == 3: screen.border() line = x - 1 group() screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Web ', line, animation, flicker | curses.color_pair(2)) elif num == 2: screen.border() line = x + 1 group() screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Videojuegos ', line, animation, flicker | curses.color_pair(2)) elif num == 1: screen.border() line = x + 3 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Atras ', line, animation, flicker)
def up_down(num): fonts.tittle(screen, '~ O P C I O N E S ~') screen.border() group() if num == 6: line = x - 5 screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Animacion ', line, user.animation_config, user.flicker_config) elif num == 5: line = x - 3 screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Parpadeo ', line, user.animation_config, user.flicker_config) elif num == 4: line = x - 1 screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Vel. Texto ', line, user.animation_config, user.flicker_config) elif num == 3: line = x + 1 screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Colores ', line, user.animation_config, user.flicker_config) elif num == 2: line = x + 3 screen.addstr(line, 3, ' ') fonts.animation_off(screen, '|> Cursor ', line, user.animation_config, user.flicker_config) elif num == 1: line = x + 5 screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Atras ', line, user.animation_config, user.flicker_config)
def up_down(num): fonts.tittle(screen, TEXT[2]) if num == 4: screen.border() line = x - 3 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Comenzar ', line, user.animation_config, user.flicker_config) elif num == 3: screen.border() line = x - 1 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Opciones ', line, user.animation_config, user.flicker_config) elif num == 2: screen.border() line = x + 1 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Acerca De ', line, user.animation_config, user.flicker_config) elif num == 1: screen.border() line = x + 3 group() screen.addstr(line, 3, ' ') fonts.animation(screen, '|> Salir ', line, user.animation_config, user.flicker_config)
def up_down(num): fonts.tittle(screen, '~ O P C I O N E S ~') screen.border() line = x - 5 text1 = str(' > Encendido < ') text2 = str(' > Apagado < ') text3 = str(' Encendido ') text4 = str(' Apagado ') if num == 2: y = curses.COLS // 2 * 2 - len(text2) - 2 screen.addstr(line + 2, y - 1, text2, curses.A_STANDOUT | curses.color_pair(3)) y = curses.COLS // 2 * 2 - len(text3) - 2 screen.addstr(line, y, text3) elif num == 1: y = curses.COLS // 2 * 2 - len(text1) - 2 screen.addstr(line, y, text1, curses.A_STANDOUT | curses.color_pair(4)) y = curses.COLS // 2 * 2 - len(text4) - 2 screen.addstr(line + 2, y - 1, text4)
def opt(num, opt): screen.border() escape = False fonts.tittle(screen, '~ O P C I O N E S ~') up_down(num) option = True while escape == False: key = screen.getch(2, 1) if key == 259: num -= 1 if num < 1: num = 1 if num == 1: option = True elif num == 2: option = False screen.border() up_down(num) escape = False elif key == 258: num += 1 if num > 2: num = 2 if num == 1: option = True elif num == 2: option = False screen.border() up_down(num) escape = False elif key == 113: main_exit(screen) escape = True elif key in [curses.KEY_ENTER, ord('\n'), 10]: escape = True curses.endwin() if option == True: #------BASE DE DATOS------ user.flicker_config = 'A_STANDOUT' #------------------------- main_exit(screen) escape = True elif option == False: #------BASE DE DATOS------ user.flicker_config = 'A_BLINK' #------------------------- main_exit(screen) escape = True elif key == curses.KEY_RESIZE: screen.erase() screen.refresh() escape = True curses.endwin() fonts.error()
def main(num): screen.border() fonts.tittle(screen, '~ O P C I O N E S ~') opt(num, 'animation')
def opt(num, opt): screen.border() escape = False fonts.tittle(screen, '~ O P C I O N E S ~') up_down(num) option = str(opt) while escape == False: key = screen.getch(2, 1) if key == 258: num -= 1 if num < 1: num = 1 option = OPTION[num] screen.border() up_down(num) escape = False elif key == 259: num += 1 if num > 6: num = 6 option = OPTION[num] screen.border() up_down(num) escape = False elif key in [curses.KEY_ENTER, ord('\n'), 10]: escape = True curses.endwin() if option == ('back'): escape = True screen.erase() screen.refresh() curses.endwin() run.opt(3, 'options') elif option == ('cursor'): process(2) elif option == ('color'): process(3) elif option == ('speed'): process(4) elif option == ('flicker'): escape = True screen.erase() screen.refresh() curses.endwin() opt2.main(screen) elif option == ('animation'): escape = True screen.erase() screen.refresh() curses.endwin() opt1.main(screen) elif key == curses.KEY_RESIZE: screen.erase() screen.refresh() escape = True curses.endwin() fonts.error()
def main(num): fonts.tittle(screen, TEXT[2]) screen.erase() screen.refresh() escape = True opt(num, 'start')
def main(screen): fonts.tittle(screen, TEXT[2]) main_space()
def opt(num, opt): screen.border() escape = False fonts.tittle(screen, TEXT[2]) up_down(num) option = str(opt) while escape == False: key = screen.getch(2, 1) if key == 258: num -= 1 if num < 1: num = 1 option = OPTION[num] screen.border() up_down(num) escape = False elif key == 259: num += 1 if num > 5: num = 5 option = OPTION[num] screen.border() up_down(num) escape = False elif key in [curses.KEY_ENTER, ord('\n'), 10]: escape = True curses.endwin() if option == ('normal'): nv0.main() elif option == ('Hacking'): process(4) elif option == ('web'): process(3) elif opt == ('game'): main_exit(num) elif option == ('exit'): main_exit(num) else: process(2) elif key == curses.KEY_RESIZE: screen.erase() screen.refresh() escape = True curses.endwin() fonts.error()