- 21 Mar 2015
- 11
- 0
Merhabalar, ben böyle bir kod yazdım fakat bunu pyinstaller ile exe çevirince bilgisayar virüs olarak algılıyor, virüstotale tarattığımda 6 anti virüs tarafından trojan tespit edildi diyor tam olarak sebebi ne olabilir? Kodun tamamı bu kadar başka bir kod yok.
Kod:
from tkinter import *
from tkinter import messagebox
import os
import datetime
import time
path = os.getcwd()
gelenler = path + "\\Gelenler\\"
def show():
global gelenler
myEmployee = clicked.get()
date = datetime.datetime.now().strftime('%d %B %Y')
file_name = date + " Gelenler.txt"
os.chdir(gelenler)
with open(file_name, "a") as file:
file.write(myEmployee + "\n")
try:
with open("calisanlar.txt", "r", encoding="utf-8") as employee:
calisanlar = employee.read().split("\n")
except FileNotFoundError:
messagebox.showerror(title="Hata!", message="calisanlar.txt dosyası bulunamadı!\nTamam tuşuna basarsanız biz sizin için oluşturacağız.")
with open("calisanlar.txt", "w", encoding="utf-8") as file:
file.write("")
file.close()
messagebox.showinfo(title="Dikkat",message="Dosya oluşturuldu!\nTamam tuşuna basınca uyarı çıkarsa kapatın!\n'calisanlar.txt' dosyasını düzenleyin!\nProgramı kullandığınız için teşekkürler.")
exit()
ico = path + "\yapi.ico"
root = Tk()
root.title("Günlük Puantaj Sistemi")
root.geometry("400x200")
root.iconbitmap(ico)
root.tk_setPalette("#c0c0c0")
# Drop Down Boxes
clicked = StringVar()
drop = OptionMenu(root, clicked, *calisanlar)
drop.pack(pady=25)
myButton = Button(root,command=show,text="Ekle",bg="yellow",fg="black")
myButton.pack(pady=25)
yazi = Label(root, text = "Copyrigt",fg="black",padx=5,pady=100)
yazi.pack(side=RIGHT)
root.mainloop()