Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- root = Tk()
- def Fsolve():
- secondBox.delete(0,'end')
- a = int(textBox.get())
- deliteli = 0
- if (a<0):
- secondBox.insert(0,"����� �����������")
- btnSolve.configure(state=DISABLED)
- else:
- for i in range(2,a):
- if a%i==0:
- deliteli = i
- if (len(secondBox.get())>0):
- secondBox.insert(END, str(deliteli)+ ", ")
- else:
- secondBox.insert(END,str(deliteli)+", ")
- root.title("������� 224")
- chislo = IntVar
- chislo2 = IntVar
- lblChislo = Label(text="������� �����: ")
- lblChislo.grid(row=0,column=0)
- root.geometry("350x150")
- secondBox = Entry()
- secondBox.place(x = 130,y=37)
- lblSec = Label(text="���-�� ���������: ")
- lblSec.grid(padx = 10,pady = 10)
- textBox = Entry()
- textBox.grid(row=0,column=2)
- btnSolve = Button(text="�������",command = Fsolve)
- btnSolve.place(x=130,y=70)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement