I don't know exactly what's causing your problem, but there are multiple bugs in your code. Also, it's best if you can provide a full working minimal example, that makes it a lot easier to debug.
The main bug (that may well cause this) is that you don't call super(Popper, self).__init__(**kwargs)
in your __init__
definition (which probably also needs to be defined with def __init__(texty, **kwargs)
to catch extra arguments). This is vital because the normal __init__
sets up all the normal widget and popup behaviour.
You also have self.yazi = text
when you mean self.yazi = texty
.
Finally, it is a normal Python convention to have class names start with a capital letter. Although this is normally just a stylistic guide and not a requirement, I think kv language depends on it sometimes, so you may get crashes or strange behaviour if you don't do so.