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.



1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
# File 'lib/a-tkcommons.rb', line 1364

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