Left padding of text in Label widget

114 views
Skip to first unread message

Kalibala AbduNoor

unread,
Jun 29, 2020, 8:54:09 AM6/29/20
to Kivy users support
Padding option for label provides only Padding_x option which padds the text on left and right yet i want the text to be padded on left only not right. currently i dont know to implement that for Label widget.
thanks for help in advance

Elliot Garbus

unread,
Jun 29, 2020, 11:55:46 PM6/29/20
to kivy-...@googlegroups.com

Please be more specific about the desired effect you are looking for, there might be an alternative to using padding only on the left.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/9a2c2124-cddf-4b5a-92e0-381ca9ac434fo%40googlegroups.com.

 

Peyton Davari

unread,
Jun 30, 2020, 12:37:47 AM6/30/20
to kivy-...@googlegroups.com
Padding: [left, top,right,bottom]

Kalibala AbduNoor

unread,
Jun 30, 2020, 12:42:27 AM6/30/20
to kivy-...@googlegroups.com
I want to pad my text only on left in Label widget. So I don't know how to do that 

You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/bMLlmMsItko/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAPnY7m0rwNzKQhprNYMcCw8-%3D%2BPTGA_PHVFdxeTpkZhHvedtVg%40mail.gmail.com.

Elliot Garbus

unread,
Jun 30, 2020, 1:23:55 AM6/30/20
to kivy-...@googlegroups.com

I want to pad my text only on left in Label widget. So I don't know how to do that 

 

That is not an option provided by the Label on only pad on the left.  There is a lot you can do with a label widget.  You can make the size of the label match the size of the text, and then position the text widget.  You could align the text so that it is on the left side of the widget and position the widgets.  There are all options to create a look of padding only on the left.

 

What do you want it to look like.  Perhaps provide an example image of what you want to achieve.

Kalibala AbduNoor

unread,
Jun 30, 2020, 2:00:41 AM6/30/20
to kivy-...@googlegroups.com
ohhhh thank u for the feedback am going to try out those options u mentioned,
below is the image attached and as u can see using padding_x pads both right and left yet i dont want to waste the right hand space.
but the optionsu mentioned above am going to give it a try and see the results.
thanks
regards
Noor

Screenshot_2020-06-30_08-50-55.png
Reply all
Reply to author
Forward
0 new messages