Ruby 使用 TkEntry

2015-03-14 0 664
Ruby 使用 TkEntry
require 'tk'
top = TkRoot.new {title "Label and Entry Widget"}
lb1=TkLabel.new(top){
      text 'Hello World'
      background "yellow"
      foreground "blue"
      pack('padx'=>10, 'pady'=>10, 'side'=>'left')
}
e1 = TkEntry.new(top){
      background "red"
      foreground "blue"
      pack('padx'=>10, 'pady'=>10, 'side'=>'left')
}
Tk.mainloop

遇见资源网 ruby Ruby 使用 TkEntry http://www.ox520.com/16307.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务