[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

TK packing

Austin

3/8/2006 3:20:00 AM

How can I pack this so it looks like this.

[New Sprite [-][+][x]]
-------------------------
| Width: [ ] |
| Height: [ ] |
- - - - - - - - - - - -

dialogBox = TkToplevel.new('title'=>'New Sprite')
frame = TkFrame.new(dialogBox).pack('fill'=>'both')

widthLabel = TkLabel.new(frame, 'text'=>'Width: ')
widthEntry = TkEntry.new(frame)
widthEntry.value = 32
heightLabel = TkLabel.new(frame, 'text'=>'Height: ')
heightEntry = TkEntry.new(frame)
heightEntry.value = 32

--
Posted via http://www.ruby-....


1 Answer

Hidetoshi NAGAI

3/8/2006 2:37:00 PM

0