Ruby 使用 TkListbox
- 作者: 你爱上了他的它
- 来源: 51数据库
- 2022-08-12
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
推荐阅读
