Ruby 使用 TkListbox

2015-04-29 0 243
Ruby 使用 TkListbox
require 'tk'
top = TkRoot.new {title "Label and Entry Widget"}

list1 = TkListbox.new(top)
list1.insert(1," Python")
list1.insert(2," Perl")
list1.insert(3," C")
list1.insert(4," PHP")
list1.insert(5," JSP")
list1.insert(6," Ruby")
list1.pack()
Tk.mainloop

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

常见问题

相关文章

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

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