Method: Tk::Tile::TPaned#panecget
- Defined in:
- lib/tkextlib/tile/tpaned.rb
#panecget(pane, slot) ⇒ Object Also known as: pane_cget
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/tkextlib/tile/tpaned.rb', line 75 def panecget(pane, slot) unless TkItemConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__ panecget_strict(pane, slot) else begin panecget_strict(pane, slot) rescue => e begin if current_paneconfiginfo(pane).has_key?(slot.to_s) # not tag error & option is known -> error on known option fail e else # not tag error & option is unknown nil end rescue fail e # tag error end end end end |