Skip to content
Advertisement

KivyMD MDDialog is not allowing multiple text inputs to be in one Dialog

I am working with KivyMD and I am trying to create a dialog that has multiple check boxes and multiple text inputs, however I cannot get multiple text inputs to exist in the dialog box

Here is a Minimal Reproducible Example of what I’m talking about:

JavaScript

And here is the resulting dialog box:

Example

Each check should have a text box but the only one that is getting one is the bottom row, this happens no matter how many items are in the dialog (2, 3, 4 all tested). With 1 item it works fine

Does anyone know why this could be happening?

Advertisement

Answer

The problem is, you didn’t specify the position of the MDTextField explicitly. That’s why even they’re there, they just stack over each other on the parent’s default pos.

So the fix is declare their pos explicitly as,

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement