ruby pastebin

Difference between
modified post 1686 by pbr on Sat 26th Dec 05:01 and
original post 1685 by pbr on Sat 26th Dec 05:00
Show old version | new version | both versions

    
11
  NGlue::GappX.run(:frame,:size=>[400,400],:title=>"Demo") {
22
    label("baz")
33
    vsplit() {
44
      fills 1,true
55
      tree() {
66
        fills 1,true
77
        self[0]='test'
8+
        self[0][0] = "sub item"
89
        on_activate() {|e|
910
          SubApp.build {
1011
            label("foobar")
1112
          }
1213
        }
1314
      }
1415
      notebook() {
1516
        fills 1,true
1617
        for pg in 0..3
1718
          add_page('foo'+pg.to_s) {
1819
            list() {
1920
              fills 1,true
2021
              columns(:Tree)
2122
              self[0] = ["foo"]
2223
            }
2324
          }
2425
        end
2526
      }
2627
      split!(110)
2728
    }
2829
  }

Syntax highlighting:

To highlight particular lines, prefix each line with @@


I'm Human
Remember me



Captcha required for posting