01.
Perl/TkFAQ-12.8如何在程序中鸣笛?原文:12.8. How do I ring the bell?The short answer is $widget -> bell;A slightly longer answer might include a fully functioning script: #!/usr/bin/perl use Tk; $main = MainWindow ...查看完整版>>
Perl/TkFAQ-12.8如何在程序中鸣笛?
02.
Perl/TkFAQ-12.3引号的作用如何?原文:12.3. What happened to the quotation marks?Perl 4 programmers especially may be surprised to find a serious dearth of quotation marks around strings in perl 5 scripts such as in perl...查看完整版>>
Perl/TkFAQ-12.3引号的作用如何?
03.
Perl/TkFAQ-12.基本问题原文:12. Common Problems.Everything in Tk-land is a reference. When defining callbacks take care to pass variables by reference. Callbacks are closures and to ensure a variable gets its c...查看完整版>>
Perl/TkFAQ-12.基本问题
04.
Perl/TkFAQ-10.如何使用某个组件来完成某个工作原文:10. How do I get widget X to do Y ?There are a number of tasks that can be accomplished with perl/Tk widgets, configurations, and bindings (a few that can't and a few that require sp...查看完整版>>
Perl/TkFAQ-10.如何使用某个组件来完成某个工作
05.
Perl/TkFAQ-10.1.如何使用按钮来调用Perl的子程序原文:10.1. How do I get a Button to call a Perl subroutine?You may specify the -command option in the call to create & pack the button as in: $main->Button(-text => 'Print', -comman...查看完整版>>
Perl/TkFAQ-10.1.如何使用按钮来调用Perl的子程序
06.
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.如何安排各组件的布局
07.
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.如何绑定键盘上的按键
08.
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.如何限制输入框中内容的宽度
09.
Perl/TkFAQ-11.如何使用画布(Canvas)……?原文:11. How do I get a Canvas to ... ?The Canvas widget is the most configurable and versatile. With versatility comes complication however, and it is certainly deserving of its own spec...查看完整版>>
Perl/TkFAQ-11.如何使用画布(Canvas)……?
10.
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.如何自己写新模块?
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。