Executando um Programa Externo sem Impedir o Funcionamento do Programa em Python
Publicado por Mauricio Ferrari em 11/11/2021
[ Hits: 3.752 ]
Blog: https://www.youtube.com/@LinuxDicasPro
[ ... ] import subprocess as sh [ ... ] def launch(lab, lst): try: lab.config(text=lst.get(ANCHOR)) text = 'Name=' + lst.get(ANCHOR) + "\n" command = extract_command(text) if not command: raise Exception('Command not selected!') print("\033[32mRunning: \033[36m" + command + "\033[m") sh.call(command, shell=True) except Exception as msg: ut.info_log(msg) [ ... ]
[ ... ] import subprocess as sh [ ... ] def launch(lab, lst): try: lab.config(text=lst.get(ANCHOR)) text = 'Name=' + lst.get(ANCHOR) + "\n" command = extract_command(text) if not command: raise Exception('Command not selected!') print("\033[32mRunning: \033[36m" + command + "\033[m") sh.call(command + ' &', shell=True) except Exception as msg: ut.info_log(msg) [ ... ]
Comando CLS do Windows no Linux
Instalando o p7zip-desktop no Deepin 20
Qmplay2 no Linux Mint 20 64bit
Kazam 1.4.5 no Slackware Current
Novo TradutorOOoNote substitui texto e envia o antigo para anotação
Como alterar a versão default (padrão) do Python no Linux
Reproduzindo vídeos em modo texto no Linux
Carteira de Bitcoin Electrum no Linux
Executando comandos do Shell Bash pelo Python
Nenhum comentário foi encontrado.
Como gerar um podcast a partir de um livro em PDF
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Conheça a 4Devs, caixa de ferramentas online para desenvolvedores
Como converter um vídeo MP4 para um GIF para publicar no README.md do seu repositório Github
Como Instalar o Microsoft Teams no Linux Ubuntu