Perl/TkFAQ-11.4在画布组件中可以创建哪些元件?

王朝perl·作者佚名  2008-05-18
窄屏简体版  字體: |||超大  

原文:

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 image types (gif, xpm, xbm, ...) line oval includes circles polygon may be -filled rectangle may also be -filled text similar to Text widget primitive window allows embeddding of other widgets

译文:

11.4 在画布组件中可以创建哪些元件?

以下一些类型的元件可以在如$canvar->create的语句中使用:

arc 圆弧线

bitmap 用于插入X11的位图文件或一些内置图像

grid 栅格线(译者注:低版本中可能没有)

image 用于插入由Photo方法引入的图像(gif, xpm, xbm, ...)

line 线

oval 椭圆(包括其特例——圆)

polygon 多边形(可以用-fill来填色)

rectangle 矩形(也可以用-fill来填色)

text 文本(类似于文本组件)

window 允许嵌入其它的窗口

(译者注:建议初学者可以看一下widget中的Canvases部分的1. The canvas item types.来更加直观的认识这些元件。)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航