Perl/TkFAQ-11.4在画布组件中能够创建哪些元件?
来源:linux宝库作者:linux宝库 发布时间:2007-09-30 00:00:00

原文:
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.来更加直观的认识这些元件。)
|
还没有关于此文章的相关评论!