miliskur.py-guncelleme
This commit is contained in:
parent
5f2f9a2156
commit
af69dd3246
1 changed files with 6 additions and 8 deletions
|
@ -5,12 +5,14 @@
|
||||||
# Commit tarihi: 25.09.2016
|
# Commit tarihi: 25.09.2016
|
||||||
# Dialog manuali için: http://pythondialog.sourceforge.net/doc/
|
# Dialog manuali için: http://pythondialog.sourceforge.net/doc/
|
||||||
|
|
||||||
gerekliKur()
|
|
||||||
|
|
||||||
from dialog import Dialog
|
|
||||||
import os,sys,re,subprocess,time
|
import os,sys,re,subprocess,time
|
||||||
import crypt
|
import crypt
|
||||||
|
|
||||||
|
os.system("pip_kur && pip3 install pythondialog")
|
||||||
|
os.system("mps -kur advcp")
|
||||||
|
|
||||||
|
from dialog import Dialog
|
||||||
|
|
||||||
d = Dialog(dialog="dialog")
|
d = Dialog(dialog="dialog")
|
||||||
f = open("/tmp/log.txt","w")
|
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)
|
out = subprocess.check_output(c,stderr=subprocess.STDOUT,shell=True,universal_newlines=True)
|
||||||
return out.replace("\b","") #encode byte format to string, ugly hack
|
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():
|
def greetingDialog():
|
||||||
status = d.yesno(title="Milis Linux'a hoş geldiniz !",
|
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)
|
text="Tanıtım yazısı buraya gelecek...\n\n\n\nKuruluma devam etmek istiyor musunuz ?",width=70,height=10)
|
||||||
|
|
Loading…
Add table
Reference in a new issue