GtkLabel alignment and padding

戏子无情 提交于 2019-12-14 02:59:07

问题


I have GtkLabel in Glade with X align set to 0, X pad set to 5, Expand set to No.

Label is located under horizontal box together with spin button and another label.

The problem is that X pad is applied to both, left and right side.

I want it to be applied only to right side.

What am I doing wrong?


回答1:


Xpad is applied to both left and right.

Glade 3.10

If you just want to have a margin on the right, then change Margin on the right available in the Common tab:

Glade 3.8

Right click on the GtkLabel widget and select Add Parent->Alignment. Click in the GtkAlignment widget and set RightPadding to the desired value.



来源:https://stackoverflow.com/questions/8456556/gtklabel-alignment-and-padding

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!