MrPoo
1
import tkinter as tk
import linecache
telegram = tk.Tk()
telegram.geometry('750x450+450+250')
telegram.title(' Telegram Bot by :)')
telegram.state('normal')
telegram.resizable(False,False)
telegram.wm_attributes('-alpha',0.8)
telegram.attributes("-topmost", True)
def satirgetir(a):
line_numbers = [a]
lines = []
for i in line_numbers:
x = linecache.getline(r"cikti.txt", i).strip()
lines.append(x)
print(lines[0].strip())
abii = 1+23
def sstart():
satirgetir(1+int(f'{abii}'))
tk.Label(telegram,
)
ent1 = tk.Text(telegram)
ent1.place(x=100, y=180, height=50, width=300)
button2 = tk.Button(telegram, text="Getir",
font=("black", 20), bg='green',
command=sstart
)
button2.place(x=475,y=170)
button2.place(width=200,height=75)
telegram.mainloop()
'''
cikti.txt dosyası
#12521412
#29312030
#23126167
#21412030
#93141221
#29312033
'''