P
P
pavuuuk2019-12-14 00:45:14
Python
pavuuuk, 2019-12-14 00:45:14

How to make a button like this in python kivy?

The background color rgba = (.95, .95, .95, 1) should change to white on hover
. The button should have a bottom border
5df403f9bc365419414804.png
. I've been trying to do this for half an hour, but I can't figure out how to place the icon inside the button to the left of the text. And I can’t figure it out with border, I just figured out how to set lines around the button:

canvas.before:
            Color:
                rgba: (.95, .95, .95, 1)
            Line:
                width: 2
                rectangle: self.x, self.y, self.width, self.height

But how to leave this line only at the bottom?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question