Executando um Programa Externo sem Impedir o Funcionamento do Programa em Python
Publicado por Mauricio Ferrari (LinuxProativo) em 11/11/2021
[ Hits: 4.100 ]
Blog: https://www.youtube.com/@LinuxProativo
[ ... ]
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)
[ ... ]
Instalando o BootUp Manager (BUM) no Ubuntu 20.04 e Linux Mint 20
Reprodutor Nulloy no Slackware 15.0 Current
SED - inserindo uma palavra abaixo de outra palavra específica
Instalando a última versão do VirtualBox no Linux Mint 20 e Ubuntu 20.04
Enumerando linhas com o comando nl
Instalando o pyenv no Linux Mint e Ubuntu
Python - Diferença entre == e is
EarSketch - Aplicativo online que usa Python para criar e remixar músicas
Lidando com erros de execução em seus programas
Nenhum comentário foi encontrado.
Gentoo binário em 2026: UEFI, LUKS, Btrfs e Systemd
Trabalhando Nativamente com Logs no Linux
Jogando Daikatana (Steam) com Patch 1.3 via Luxtorpeda no Linux
LazyDocker – Interface de Usuário em Tempo Real para o Docker
Substituindo o NetworkManager pelo iwd (e iwgtk)
Em qual Arquivo colocar as Configurações
Forçar resolução teimosa no Wayland
Como fazer um pendrive bootável utilizando a ferramenta Rufus









