Facebook
From Roko, 1 Month ago, written in Plain Text.
This paste is a reply to Python Allba from Roko - go back
Embed
Viewing differences between Python Allba and Re: Python
from tkinter import*

a=Tk()
a.title("Renudula")
a.geometry("500x500")
a.config(bg="cyan")


#COMANDA
def b():
    dulj=float(textbox1.get())
    šir=float(textbox2.get())
    vis=float(textbox3.get())
    vol=round(dulj*šir*vis,2)
    rez = Label(a,text = "Volumen kvadrata je: " +str(vol))
    rez.place(x = 350, y=350)


    

    
#/////////////////////////////////////////////////
              

#labels

#1.
ispis = Label(a, text = "Hello world" "duljina" , bg = "black"
              , fg="white", font=("Arial",12))
ispis.place(x =50, y=50)

#2.
ispis = Label(a, text = "Hello world" "širina" , bg = "black"
              , fg="white", font=("Arial",12))
ispis.place(x =50, y=100)
#3.
ispis = Label(a, text = "Hello world" "visina" , bg = "black"
              , fg="white", font=("Arial",12))
ispis.place(x =50, y=150)
#4.
ispis = Label(a, text = "Hello world" , bg = "black"
              , fg="white", font=("Arial",12))
ispis.place(x =50, y=200)

#entrys:

#1
textbox textbox1 = Entry(a,width=12)
textbox.textbox1.place(x =200, y=50)

#2
textbox textbox2 = Entry(a,width=12)
textbox.textbox2.place(x =200, y=100)

#3
textbox textbox3 = Entry(a,width=12)
textbox.textbox3.place(x =200, y=150)

#GUMB

#1
gumb2=Button(a,text="izracunja volumen", command=b)
gumb2.place(x=180,y=300,width=120)


Replies to Re: Python rss

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