[Python] Kivy CheckBox Looks Like Solid Black Box (Not a Checkbox)

Discussão em 'Python' iniciado por Stack, Abril 9, 2025.

  1. Stack

    Stack Membro Participativo

    I am making a BoxLayout widget (orientation = 'horizontal') that contains three widgets inside of it, a label, a text box, and a check box.

    thisRow = BoxLayout(orientation='horizontal')
    l = Label(text='Enter plate 1:\n(Plate #)')
    t = TextInput(text = 'this is a text box')
    c = CheckBox()
    thisRow.add_widget(l)
    thisRow.add_widget(t)
    thisRow.add_widget(c)


    This produces the following widget (thisRow):

    [​IMG]

    After the box is checked...

    [​IMG]

    The rightmost black box is actually the checkbox, and works functionally, however there is no way for the user to know that it is in fact a checkbox. I would expect a smaller empty square in the middle, as is depicted in pictures here.

    How do i get the traditional checkbox image (smaller empty square box)? Or generally, how can I make it more obvious that the box is a check box and not just an empty label?

    Thank you

    Continue reading...

Compartilhe esta Página