# File rbSnack/tkSnack.rb, line 341 def getTkOptionArray result = [] each_pair do |key, value| #next if value == nil option_value="" option_value=value #unless value==nil option_value=value.name if value.kind_of? Filter option_value="{"+option_value.join(' ')+"}" if option_value.kind_of? Array option_key = key option_key = 'end' if key=='stop' or key=='endPos' option_key = 'start' if key=='startPos' if option_key=='progress' option_value = 'snack::progressCallback' if option_value=='show' or option_value==true option_value = 'nopCallBack' if option_value=='hide' or option_value==false end if option_key=='preemphasis' option_key='preemphasisfactor' end result<<'-'+option_key result<<option_value unless value==nil end result end