Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Help guys

a guest Apr 10th, 2020 148 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from tkinter import *
  2. window= Tk()
  3. window.title("hello amogis")
  4. window.geometry("440x200")
  5. txt=Entry(window,validate='focusin',validatecommand="%N", width=2)
  6. n=txt.get()
  7. txt.grid(column=1, row=0)
  8. oppx=Label(window, text="A", font=("Algerian",37))
  9. oppx.grid(column=0, row=1)
  10. p=int(2)
  11. txtb=Entry(window,textvariable=p, width=2)
  12. txtb.grid(column=1, row=2)
  13. n1=int(3)
  14. txt1=Entry(window,textvariable=n1, width=2)
  15. txt1.grid(column=5, row=0)
  16. oppx1=Label(window, text="C", font=("Algerian",37))
  17. oppx1.grid(column=4, row=1)
  18. p1=int(4)
  19. txtb1=Entry(window,textvariable=p1, width=2)
  20. txtb1.grid(column=5, row=2)
  21. btn1=Button(window, text="calculer")
  22. btn1.grid(column=8,row=1)
  23. n2=int(5)
  24. txt2=Entry(window,textvariable=n2, width=2)
  25. txt2.grid(column=10, row=0)
  26. oppx2=Label(window, text="P", font=("Algerian",37))
  27. oppx2.grid(column=9, row=1)
  28. p2=int(6)
  29. txtb2=Entry(window,textvariable=p2, width=2)
  30. txtb2.grid(column=10, row=2)
  31. btn1=Button(window, text="calculer")
  32. btn1.grid(column=11,row=1)
  33. def aremis():
  34.  nAr=int(7)
  35.  nAr=n**p
  36.  c=n
  37.  def clicked1():
  38.  nar=Label(window, text=c)
  39.  nar.grid(column=0,row=20)
  40.  btn=Button(window, text="calculer", command=clicked1)
  41.  btn.grid(column=3,row=1)
  42. def sremis():
  43.  nf=1
  44.  c=n
  45.  d=n-p
  46.  while c>=2:
  47.  nf=int()
  48.  nf=nf*c
  49.  c=c-1
  50.  npf=1
  51.  while npf>=2:
  52.  npf=int()
  53.  npf=npf*d
  54.  d=d-1
  55.  nAr=nf/npf
  56.  def clicked1():
  57.  nar=Label(window, text=nAr)
  58.  nar.grid(column=0,row=20)
  59.  btn=Button(window, text="calculer", command=clicked1)
  60.  btn.grid(column=3,row=1)
  61. rad=Radiobutton(window,text="avec remis", value=1, command=aremis())
  62. rad1=Radiobutton(window, text="sans remis", value=2, command=sremis())
  63. rad.grid(column=12, row=0)
  64. rad1.grid(column=12, row=1)
  65. window.mainloop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top