01.
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)……?
02.
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.如何使用某个组件来完成某个工作
03.
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的子程序
04.
Perl/TkFAQ-16.1如何使用对话框?原文:16.1. How do I get a Dialog box?For things like a simple "are you sure?" dialog box you might want to take a look at perl5/Tk/Dialog.pm. This module may be invoked with require Tk::D...查看完整版>>
Perl/TkFAQ-16.1如何使用对话框?
05.
Perl/TkFAQ-11.3.如何在画布中显示图片?原文:11.3. Display an Image?Just as for the other widget types there is a two step process of first getting a "Photo" handle on the file of interest. For the Canvas (unlike the other widg...查看完整版>>
Perl/TkFAQ-11.3.如何在画布中显示图片?
06.
Perl/TkFAQ-11.5.如何调整画布中线条的位置?原文:11.5. How do I redraw a line on a Canvas?By calling the ->coord method on the item as in the following example: #!/usr/bin/perl use Tk; $m = MainWindow->new; $c = $m -> Canv...查看完整版>>
Perl/TkFAQ-11.5.如何调整画布中线条的位置?
07.
Perl/TkFAQ-11.6.如何把画布作为布局管理器原文:11.6. How do I use the Canvas as a geometry manager?In a call to create a window (or anything) on your Canvas you need to specify its position - this is in part how a Canvas can be u...查看完整版>>
Perl/TkFAQ-11.6.如何把画布作为布局管理器
08.
Perl/TkFAQ-11.2.如何擦除画布上的元素?原文:11.2. Erase a display?To erase something like a bitmap call delete on the item. Assuming your Canvas tag is $canvar and your item tag it $bittag (as in the previous [11.1] question) ...查看完整版>>
Perl/TkFAQ-11.2.如何擦除画布上的元素?
09.
Perl/TkFAQ-11.9.如何获取画布的大小?调整了大小之后呢?原文:11.9. How do I get the size of a Canvas? After a re-size? $canvas->cget(-width);simply returns the size of the canvas when it was created, whereas $canvas->Width;will get t...查看完整版>>
Perl/TkFAQ-11.9.如何获取画布的大小?调整了大小之后呢?
10.
Perl/TkFAQ-11.4在画布组件中可以创建哪些元件?原文:11.4. What things can be created on a Canvas?The following types can be used in $canvar->create calls: arc sections of circle bitmap for X11 bitmap files/builtins image for Photo ...查看完整版>>
Perl/TkFAQ-11.4在画布组件中可以创建哪些元件?
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。