[英]Buttons in Glade, why are they square?
我是GTK的新手。 我正在使用Glade创建界面,只想将对象(例如按钮和其他)插入容器中。 我选择了GtkFixed以便可以自由定位所有元素并确定其大小。 问题是,例如,当我拖动按钮时,该按钮显然是从父级(在这种情况下为容器)中获取尺寸的,并呈正方形。 这是一张图片
GtkFixed
我希望按钮采用标准尺寸,就像矩形或其他形状一样。 我做错了什么? 我已经检查了容器中的一些选项,但不知道方法。 谢谢。
您必须从“ Height request和“ Width request删除对勾(我不知道您所用语言的对等名称)。
Height request
Width request
此外,您应该知道,当可以调整窗口大小时,GtkFixed很难使用。 GtkBox通常更容易。
[英]Glade/GTK3 and radio buttons
[英]Newbie Glade user confounded by radio buttons
[英]pygtk glade question: why isn't this simple script working?
[英]Why don't my form controls (Glade/Python) work?
[英]Building a chessboard with buttons, which is always a square
[英]Glade with Tkinter?
[英]Why does this Punnet square fail?
[英]Why are the 4 buttons not displaying?
[英]Glade or no glade: What is the best way to use PyGtk?
[英]Python/Glade/PyGTK - Download Percentage in Glade Label
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.