This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"titulo":"Efecto opacidad (ventana emergente) PyQt", | |
"imagen":"https://1.bp.blogspot.com/-m0LqzuyyUAg/X_cmPnuuAXI/AAAAAAAAACI/a4MH2S-SSOknali9OkP8JMua0WUOkDgZgCLcBGAsYHQ/s1600/ventanaopacidad.jpg", | |
"descripcion":"", | |
"link": "https://github.com/ALEX7320/ventanaemergentepyqt", | |
"tag": [ | |
{"id":2}, | |
{"id":3} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Iniciamos en un while para que puedas | |
#ejecutarlo sin limites (opcional) | |
while True: | |
''' | |
el "switch" nos ayudara a identifica | |
si el numero es negativo | |
negativo = True | |
no negativo = False | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. LEER TEXTO / CONFIGURACIONES | |
# pip install pypiwin32 | |
import win32com.client | |
speaker=win32com.client.Dispatch("SAPI.SpVoice") | |
speaker.Rate = -1# rango -10(lento) - 10(rapido) | |
speaker.Volume = 100# rango 0(vajo) - 100(alto) | |
speaker.Speak("TEXTO DE PRUEBA") |