ruby pastebin

Posted by pbr on Sat 26th Dec 05:01 (modification of post by pbr view diff)
diff | download | new post

  1.   NGlue::GappX.run(:frame,:size=>[400,400],:title=>"Demo") {
  2.     label("baz")
  3.     vsplit() {
  4.       fills 1,true
  5.       tree() {
  6.         fills 1,true
  7.         self[0]='test'
  8.         self[0][0] = "sub item"
  9.         on_activate() {|e|
  10.           SubApp.build {
  11.             label("foobar")
  12.           }
  13.         }
  14.       }
  15.       notebook() {
  16.         fills 1,true
  17.         for pg in 0..3
  18.           add_page('foo'+pg.to_s) {
  19.             list() {
  20.               fills 1,true
  21.               columns(:Tree)
  22.               self[0] = ["foo"]
  23.             }
  24.           }
  25.         end
  26.       }
  27.       split!(110)
  28.     }
  29.   }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


I'm Human
Remember me



Captcha required for posting