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
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
善良的高富帅