01.
Perl/TkFAQ-10.15.如何设定字体原文:10.15. How do I specify fonts?The quick answer is to specify the font configuration option of your widget as in: #!/usr/local/bin/perl -w use Tk; $main = MainWindow->new(); $labl ...查看完整版>>
Perl/TkFAQ-10.15.如何设定字体
02.
Perl/TkFAQ-15.如何自己写新模块?原文:15. How do I write new modules?You might want to start by poking around your perl/Tk build directory. Is there something there that already does what you want? Is there something tha...查看完整版>>
Perl/TkFAQ-15.如何自己写新模块?
03.
Perl/TkFAQ-10.3.如何安排各组件的布局原文:10.3. How do I arrange the layout of my widgets?To control the layout and appearance of widgets in a window one makes use of a geometry manager, as well as -padding, -fill, -expand, ...查看完整版>>
Perl/TkFAQ-10.3.如何安排各组件的布局
04.
Perl/TkFAQ-10.5.如何绑定键盘上的按键原文:10.5. How do I bind keyboard keys?There are many default key bindings built in to the widgets of perl/Tk. Making proper use of them often involves setting up the right callback. (You...查看完整版>>
Perl/TkFAQ-10.5.如何绑定键盘上的按键
05.
Perl/TkFAQ-10.8.如何配置用一个滚动条来控制多个组件原文:10.8. How do I configure a Scrollbar to scroll multiple widgets?Note that the widget type that you wish to scroll can be important as a scroll "unit" on a Text or Listbox may be a ch...查看完整版>>
Perl/TkFAQ-10.8.如何配置用一个滚动条来控制多个组件
06.
Perl/TkFAQ-10.17.如何隐藏密码输入框中的内容?原文:10.17. How do I hide a password Entry?Set the -show option to zero, as in this example: $entry = $form->Entry(-textvariable => \$user_entry, -show => 0);译文:10.17....查看完整版>>
Perl/TkFAQ-10.17.如何隐藏密码输入框中的内容?
07.
Perl/TkFAQ-10.18.如何限制输入框中内容的宽度原文:10.18. How do I limit an Entry's insertion width?[OBSOLETE; explain use of new -validatecommand with 8.0] Nick Ing-Simmons recommends writing a new Entry widget with the insert metho...查看完整版>>
Perl/TkFAQ-10.18.如何限制输入框中内容的宽度
08.
Perl/TkFAQ-11.10.如何给画布的不同区域设置不同的绑定?原文:11.10. How do I bind different actions to different areas of the same Canvas?KOBAYASI Hiroaki <kobayasi@sowa.is.uec.ac.jp> recently posted an extraordinary little script that a...查看完整版>>
Perl/TkFAQ-11.10.如何给画布的不同区域设置不同的绑定?
09.
Perl/TkFAQ-10.2.如何设置按钮随鼠标指向的动态变化原文:10.2. How do I get a Button to actively change under my mouse pointer?You should specify both an '-image' and an '-activeimage' configuration option either when calling the ->Butt...查看完整版>>
Perl/TkFAQ-10.2.如何设置按钮随鼠标指向的动态变化
10.
Perl/TkFAQ-10.4.如何设置一个弹出窗口原文:10.4. How do I get a Popup to popup?For things like a simple "are you sure?" dialog box you might want to take a look at Dialog.pm which is discussed in a later question within this ...查看完整版>>
Perl/TkFAQ-10.4.如何设置一个弹出窗口
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。