Answer the question
In order to leave comments, you need to log in
Center an Icon inside a Python kivy button?
<Messenger>
BoxLayout:
orientation: 'vertical'
BoxLayout:
pos_hint: {'top': 1}
size_hint: 1, 0.075
orientation: 'horizontal'
Button:
Image:
source: 'params.png'
size_hint_y: None
size_hint_x: None
y: self.parent.y + self.parent.height/2
x: self.parent.x + self.parent.width/2
#heigth: self.parent.width/self.image_ratio
#heigth: self.parent.height
width: 30
keep_ratio: True
allow_stretch: True
Button:
text: 'button'
Button:
text: 'button'
BoxLayout:
orientation: 'vertical'
Button:
text: 'button'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question