0

When using iwidgets::panedwindow I couldn't get rid of the margins between the panes and the sashes (shown in blue arrows in the small picture). Is there a way to get rid of them, so that the pane will be next to the sash, like in ttk::panedwindow?

A picture of a form using iwidgit::panedwindow:

enter image description here

A close picture of the "problem":

enter image description here

A picture of (almost) the same form using ttk::panedwindow:

enter image description here

4

1 回答 1

1

查看您链接到的文档,我估计问题可能是-margin您创建的窗格上的默认值(8 像素,根据文档)-sashwidth-thickness整体小部件选项(默认分别为 10 和 3 像素)的混合)。

您可以-margin在创建时设置或使用方法更新它paneconfigure(缺少其文档,但在文档中的示例中显示),-sashwidthand-thickness选项在小部件创建时或通过configure方法设置(根据Tk 小部件的标准模式)。

将上面提到的所有选项设置为零不太可能产生可用的小部件,但窗格边距可能会减少到零而不会产生不良影响(它们描述了内部小部件与其窗格边缘之间的空间)。

于 2013-07-24T08:30:26.760 回答