miliskur.py-guncelleme

This commit is contained in:
milisman 2016-10-09 04:47:13 +03:00
parent 5f2f9a2156
commit af69dd3246
1 changed files with 6 additions and 8 deletions

View File

@ -5,12 +5,14 @@
# Commit tarihi: 25.09.2016
# Dialog manuali için: http://pythondialog.sourceforge.net/doc/
gerekliKur()
from dialog import Dialog
import os,sys,re,subprocess,time
import crypt
os.system("pip_kur && pip3 install pythondialog")
os.system("mps -kur advcp")
from dialog import Dialog
d = Dialog(dialog="dialog")
f = open("/tmp/log.txt","w")
@ -18,10 +20,6 @@ def runShellCommand(c):
out = subprocess.check_output(c,stderr=subprocess.STDOUT,shell=True,universal_newlines=True)
return out.replace("\b","") #encode byte format to string, ugly hack
def gerekliKur():
os.system("pip_kur && pip3 install pythondialog")
os.system("mps -kur advcp")
def greetingDialog():
status = d.yesno(title="Milis Linux'a hoş geldiniz !",
text="Tanıtım yazısı buraya gelecek...\n\n\n\nKuruluma devam etmek istiyor musunuz ?",width=70,height=10)