I have been trying everything and im pretty much exhausted. The problem is that there comes up an error "Can't convert 'Entry' object to str implicitly" And i doesnt find any way to make it work.
Here is the code:
from tkinter import *
def wcommand():
import webbrowser
new=2;
url='https://'+w
webbrowser.open(url,new=new);
root = Tk()
Label (root, text="Nettadresse:").grid(row=0)
w = Entry(root)
w.grid(row=0, column=1,)
b1 = Button(root, text='Kjør!', command=wcommand).grid()
root.mainloop()