4 ms·
It's easy in Ruby. For example: require 'tk' root=TkRoot.new{title "curi"} label = TkLabel.new(root) {text "i'm text"}.pack button = TkButton.new(root) {
by curi 19y ago
It's easy in Ruby. For example:
require 'tk'
root=TkRoot.new{title "curi"}
label = TkLabel.new(root) {text "i'm text"}.pack
button = TkButton.new(root) {text "click me"}.pack
Tk.mainloop
- iamwil 19y agoTk looks kinda ugly, if you're a stickler for those kinda things. If you want a prettier one, albeit less features since it's new, check out Shoes for Ruby by the venerable _why. http://code.whytheluckystiff.net/shoes/ http://code.whytheluckystiff.net/shoes/
- davidw 19y agoTile makes Tk look a lot better.
- lisporama 19y agoCute. Had to pop over to ActiveState to download TCL, but that worked pretty good straight from the REPL-like fxri prompt.... (Now I just need a library for doing transformations with bitmap images.) Thanks.
- tlrobinson 19y agoRMagick