how to solve problems with "referenced before assignment"? [duplicate]

0
from tkinter import *
from tkinter import messagebox

jan = Tk()
jan.title("Pontuacao")
jan.geometry("200x200")

pontos = 0

a = Label(jan, text="pontos")
a.place(x=0,y=0)

def aumentar_pontos():
    pontos += 1
    messagebox.showinfo(title="Aviso", message=("Pontuaçao aumentada, qnt: 
    ",pontos))


ab = Button(jan, text="aumentar pontuacao", command=aumentar_pontos)
ab.place(x=0,y=50)

but always the problem of "referenced before assignment"

    
asked by anonymous 27.11.2018 / 18:42

0 answers