Jump to content
Sign in to follow this  

[Python] PySysLauncher

Recommended Posts


An useless program :D

# -*- coding: utf-8 -*-
from Tkinter import *
import tkSimpleDialog, sys, os

class PySysLauncher:
def __init__(self):
	self.version = '0.1'
	self.text = "PySysLauncher, versão %s\nby djthyrax\n\nPortugal-a-Programar.org\nA comunidade portuguesa de programadores"
	self.splash = Label(Tk(), text=self.text % (self.version))
	self.cmd = ''
	while self.cmd == '':
		self.cmd = tkSimpleDialog.askstring("Run", "What do you want to run?")
			self.cmd = self.cmd.strip()
		except AttributeError: # Sair caso se clique no Cancel
	os.system(self.cmd+" &")


Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.