Facebook
From Roko, 1 Month ago, written in Plain Text.
This paste is a reply to Python Allba from Roko - view diff
Embed
Download Paste or View Raw
Hits: 150
  1.  
  2. #COMANDA
  3. def b():
  4.     dulj=float(textbox1.get())
  5.     šir=float(textbox2.get())
  6.     vis=float(textbox3.get())
  7.     vol=round(dulj*šir*vis,2)
  8.     rez = Label(a,text = "Volumen kvadrata je: " +str(vol))
  9.     rez.place(x = 350, y=350)
  10.  
  11.  
  12.    
  13.  
  14.    
  15. #/////////////////////////////////////////////////
  16.              
  17.  
  18. #labels
  19.  
  20. #1.
  21. ispis = Label(a, text = "duljina" , bg = "black"
  22.               , fg="white", font=("Arial",12))
  23. ispis.place(x =50, y=50)
  24.  
  25. #2.
  26. ispis = Label(a, text = "širina" , bg = "black"
  27.               , fg="white", font=("Arial",12))
  28. ispis.place(x =50, y=100)
  29. #3.
  30. ispis = Label(a, text = "visina" , bg = "black"
  31.               , fg="white", font=("Arial",12))
  32. ispis.place(x =50, y=150)
  33. #4.
  34. ispis = Label(a, text = "Hello world" , bg = "black"
  35.               , fg="white", font=("Arial",12))
  36. ispis.place(x =50, y=200)
  37.  
  38. #entrys:
  39.  
  40. #1
  41. textbox1 = Entry(a,width=12)
  42. textbox1.place(x =200, y=50)
  43.  
  44. #2
  45. textbox2 = Entry(a,width=12)
  46. textbox2.place(x =200, y=100)
  47.  
  48. #3
  49. textbox3 = Entry(a,width=12)
  50. textbox3.place(x =200, y=150)
  51.  
  52. #GUMB
  53.  
  54. #1
  55. gumb2=Button(a,text="izracunja volumen", command=b)
  56. gumb2.place(x=180,y=300,width=120)
  57.  
  58.  
  59.  

Replies to Re: Python rss

Title Name Language When
Re: Re: Python Roko text 1 Month ago.