为什么我的 Perl/Tk 按钮小部件大小随不同的 xterm 客户端而变化?

发布于 2024-08-26 19:51:37 字数 181 浏览 2 评论 0原文

我有一个 Perl/Tk 脚本,在其中创建一个高度为 1 的按钮小部件。 现在,当我通过 Citrix xterm 客户端执行脚本时,会显示按钮。 再次,当我现在通过 PC 中的 xterm 客户端执行脚本时,按钮小部件的大小有所不同。 有人可以解释为什么会发生这种情况,我应该做什么才能使按钮小部件的大小在不同的 xterm 客户端中保持不变?

I have a Perl/Tk script in which I am creating a button widget of height 1.
Now when I execute script through Citrix xterm client I get button displayed.
Again when I execute script now through xterm client in my PC size of button widget differs.
Can someone explain why is this happening, and what should I do so that size of button widget remains constant with different xterm clients?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你在看孤独的风景 2024-09-02 19:51:37

Tk 使用“选项数据库”来确定小部件的默认外观。该数据库(通常是名为 .Xdefaults 的文件)可能因不同计算机或同一计算机上的不同用户而异。一般来说,您不必担心这一点,因为它允许用户设置自己的字体、颜色等首选项。另一种方法是完全指定每个小部件的选项,而不使用任何内容的默认值。

Tk uses an "option database" that determines the default appearance of widgets. That database (typically a file named .Xdefaults) can vary for different machines or different users on the same machine. In general you shouldn't worry about this because it allows the user to set their own preferences for fonts, colors, etc. The alternative is to fully specify the options for each widget and not use default values for anything.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文