![stronghold finder stronghold finder](https://i.imgur.com/BAQIb.png)
There is no need to have the labels with variables x and z initially as changing the values of x and z will not affect the values of the label, you can make use of the.get() in the function clicked() followed by casing so that the current values in the entry are picked. Instead of making the retrieved values as global, I have made the Text instances global and then applied the.Textz = Label(window, font=('Arial Bold', 15)) Textx = Label(window, font=('Arial Bold', 15)) Global ex1, ez1, eang1, ex2, ez2, eang2, textx, textz
![stronghold finder stronghold finder](https://wordpuncher.com/wp-content/uploads/2011/10/stronghold-enderdimension-blocks-1024x767.png)
I have made a few changes to your code, refer to it below from tkinter import * get() method as soon as the widgets are initialized, they will permanently hold the an empty string and when casting to float it will throw an error. I'm new in programming, so please don't judge too harshly. ValueError: could not convert string to float: '>' Minecraft Strongholf Finder.py", line 9, in clicked Minecraft Strongholf Finder.py", line 77, in Python keeps giving me the following errors one of them is impossibility of converting string to float, the other is that python doesn't see my x and z variables, but I declared them global: Traceback (most recent call last): Text5 = Label(window, text='Z:', font=('Arial Bold', 15)) Text4 = Label(window, text='X:', font=('Arial Bold', 15)) Textz = Label(window, text=z, font=('Arial Bold', 15)) Textx = Label(window, text=x, font=('Arial Bold', 15)) Wig Glue Hair Replacement Adhesive Invisible Bonding Waterproof Lace Wig Glue Strong Hold Adhesive : Hold for Poly and Lace Hairpiece, Wig, Toupee Systems. Tang2 = Label(window, text="Angle:", font = ('Arial Bold', 15))ītn = Button(window, text="Calculate!", font = ('Arial Bold', 15), command = clicked) Tz2 = Label(window, text="Z:", font = ('Arial Bold', 15)) Tx2 = Label(window, text="X:", font = ('Arial Bold', 15)) Tang1 = Label(window, text="Angle:", font = ('Arial Bold', 15)) Tz1 = Label(window, text="Z:", font = ('Arial Bold', 15)) Tx1 = Label(window, text="X:", font = ('Arial Bold', 15)) Text3 = Label(window, text="Second throw:", font = ('Arial', 15)) Text2 = Label(window, text="First throw:", font = ('Arial', 15)) Text1 = Label(window, text="Input your coordinates and angles of view", font = ('Arial', 15)) Text = Label(window, text="Welcome to the Minecraft Stronghold Finder", font = ('Arial Bold', 20)) Window.title("Minecraft Stronghold Finder") I'm trying to build a Minecraft stronghold coordinates finder that uses float variables, here's my code: from tkinter import *