Username: Password:

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.来更加直观的认识这些元件。)

喜欢本文,那就收藏到:

    Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网
相关评论  我也要评论
还没有关于此文章的相关评论!
  • 昵称: (为空则显示guest)
  • 评论分数: ★ ★ ★★★ ★★★★ ★★★★★
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
  • 导航
    赞助商
    文章类别
    订阅