FREESCO Dialer Client
Publicado por Leonardo Berbert Gomes 17/01/2005
[ Hits: 5.775 ]
Homepage: https://www.linkedin.com/in/leoberbert
Discador grafico em Python,
que é um dos scripts que
mais provam que o Python é
uma excelente linguagem.
#!/usr/bin/python SERVER="*.*.*.*" # address of gateway machine USER="*****" # probably admin for you or make a new account PASS="*****" # users password # don't change below this line ########################### from Tkinter import * from urllib import * import string import sys import time def setStatus(sts): """ set dialup status. 0=hangup, 1=dial """ if (sts==0): fl=urlopen("http://" + USER + ":" + PASS + "@" + SERVER + ":82/cgi/usr.cgi?block") else: OP="" fl=urlopen("http://" + USER + ":" + PASS + "@" + SERVER + ":82/cgi/usr.cgi?unblock") fl=urlopen("http://" + USER + ":" + PASS + "@" + SERVER + ":82/cgi/usr.cgi?up") root=Tk() root.title("FREESCO Dialer") Button(root, text="Dial", width=10, command=lambda: setStatus(1)).grid(column=1,row=0) Button(root, text="Hangup", width=10, command=lambda: setStatus(0)).grid(column=2,row=0) Button(root, text="Quit", width=10, command=root.destroy).grid(column=3,row=0) mainloop()
Conversor de vídeos do YouTube para MP3
Descubra seu IP através do MeuIP
Nenhum comentário foi encontrado.
Como escolher o melhor escalonador de CPU para melhorar o desempenho da máquina
Curiosidade sobre DOOM Guy e Isabelle de Animal Crossing
Inicializando servidor Ubuntu na AWS e rodando apache em Container
Instalando TeamViewer no Debian 12
Conheça o Octopi, outro frontend para o Pacman com acesso ao AUR (Arch Linux e derivados)
Terminal transparente no Debian 12 com interface i3wm usando Xfce4-Terminal e Compton
Eu estou com problemas para usar o QBASIC no Dosbox X (2)
Ubuntu simplesmente morreu (8)
Como colocar uma assinatura digital em um código compilado ! (2)