Class: TkBuffersChoise

Inherits:
TkBuffersChoiseView show all
Defined in:
lib/a-tkcommons.rb

Instance Method Summary collapse

Constructor Details

#initializeTkBuffersChoise

Returns a new instance of TkBuffersChoise.



2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
# File 'lib/a-tkcommons.rb', line 2155

def initialize
  super
  @lb.value= $arcadia['buffers.code.in_memory'].keys
  @lb.bind("Double-ButtonPress-1",proc{
    _sel = @lb.get('active')
    Revparsel.new($arcadia['buffers.code.in_memory'][_sel])
    @lb.delete('active')
    $arcadia['buffers.code.in_memory'].delete(_sel)
    destroy
  })
  raise
end