Hell, i am new to python and i am coding a minecraft launcher using the portablemc library. To connect i need the email of the player which is found with a variable and then i execute a command using the email, how do i use a variable inside of another command ? It keeps telling me there's a syntax error.
The code :
def login():
#crée une fênetre de login
login = tk.Tk()
login.title("Se Connecter")
login.geometry("600x375")
#ajout un label pour l'email
label_email = tk.Label(login, text="Saissez votre email (les pseudonymes ne fonctionnent pas)")
label_email.pack(pady=10)
#champ de saisie pseudo et email
global email_entry
email_entry = tk.Entry(login)
email_entry.pack(pady=10)
#ajoute un bouton de connexion sur l'écran de connexion
log_button = tk.Button(login, text="Connexion", command=loginbuttononclick)
log_button.pack(pady=20)
def loginbuttononclick():
# donne que l'email entré à une fonction
entered_email = email_entry.get().strip()
#lance la fênetre de connexion
portablemc --login entered_email