Class: Tk::Spinbox::SpinCommand::ValidateArgs
- Inherits:
-
TkUtil::CallbackSubst
- Object
- Data
- TkUtil::CallbackSubst
- Tk::Spinbox::SpinCommand::ValidateArgs
- Defined in:
- lib/tk/spinbox.rb
Constant Summary collapse
- KEY_TBL =
[ [ ?d, ?s, :direction ], [ ?s, ?e, :current ], [ ?W, ?w, :widget ], nil ]
- PROC_TBL =
[ [ ?s, TkComm.method(:string) ], [ ?w, TkComm.method(:window) ], [ ?e, proc{|val| #enc = Tk.encoding enc = ((Tk.encoding)? Tk.encoding : Tk.encoding_system) if enc Tk.fromUTF8(TkComm::string(val), enc) else TkComm::string(val) end } ], nil ]
Class Method Summary collapse
Methods inherited from TkUtil::CallbackSubst
_define_attribute_aliases, _get_all_subst_keys, _get_extra_args_tbl, _get_subst_key, _setup_subst_table, _sym2subst, #initialize, inspect, scan_args, subst_arg
Constructor Details
This class inherits a constructor from TkUtil::CallbackSubst
Class Method Details
.ret_val(val) ⇒ Object
60 61 62 |
# File 'lib/tk/spinbox.rb', line 60 def self.ret_val(val) (val)? '1': '0' end |