Executando um Programa Externo sem Impedir o Funcionamento do Programa em Python
Publicado por Mauricio Ferrari em 11/11/2021
[ Hits: 3.691 ]
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) [ ... ]
brModelo 3.3 empacotado para o Linux Mint 20
Fazendo o XTerm iniciar em tela cheia
Extraindo Arquivos de Pacote de Tema do Windows (themepack) no Linux
Melhor Controle de Memória de Strings em C
FreeOffice - Ocorreu o erro interno (-105). Tente novamente mais tarde [RESOLVIDO]
Instalando o IPython com extensão notebook no Linux Mint e Ubuntu
Hardware Project Simulator 0.23 - Mais fácil ainda!
Python com Ninja-IDE no Fedora
Luna - Assistente virtual modo TXT para Linux
Nenhum comentário foi encontrado.
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Como instalar no Linux Jogos da Steam só para Windows
Instalando o Team Viewer no Debian Trixie - problema no Policykit
O Que Fazer Após Instalar Ubuntu 25.04