def __init__(self): self.grupo = gtk.WindowGroup() self.ventanas = [] self.http = Http(self.ventanas) self.sessionid = None Chrome.init() self.ventana = self.salidas() self.login()
def setUpClass(self): self.chrome = Chrome.Chrome() self.user = { "username": "******", "email": "*****@*****.**", "password": "******" }
def main(): user_input = show_options() emotions = [] while user_input != 'x': if user_input == '1': # Extracting Feature Function Call get_features('Audio/') user_input = show_options() elif user_input == '2': Sono.build_model() user_input = show_options() elif user_input == '3': song_predictor() get_features('Output/') emotions = Sono.predict_emotion() num_images = input( "Enter number of images you would like as a representation: ") Chrome.build_image(emotions, int(num_images)) user_input = show_options()
def setUpClass(self): self.chrome = Chrome.Chrome() self.user = { "username": "******".format(now.month, now.day, now.hour, now.minute), "email": "unregistered{}{}{}{}@test.com".format(now.month, now.day, now.hour, now.minute), "password": "******" }
v.status_bar.push(status) Widgets.AlertaTwist('Error de conexión', 'error_envio.png', status + '\n' + 'Presione el botón para reconectar\n' + 'si el problema persiste informe a TCONTUR.') def resume(self, *args): for v in self.ventanas: v.twist.activar() v.status_bar.push('Conexión activa') self.state.set() def cerrar(self): global infinito infinito = False self.state.set() try: self.socket.shutdown(socket.SHUT_RDWR) except: pass self.join() if __name__ == '__main__': s = Splash() gtk.main() infinito = False if os.name == 'nt': os.system('taskkill /im TCONTUR5.exe /f') Chrome.close()
# -*- coding:utf-8 -*- """ This module is intended to demonstrate how to use Chrome object e.g Launch google chrome status: ? """ # import sikuli features from sikuli import * import specscontext # import module import Chrome c = Chrome.Chrome() # c.open() c.clean_caches()
def __init__(self): self.pm = PluginsManager.Platform() self.action_list = self.pm.get_all_plugin() self.driver = Chrome.Chrome()