Wx::Perl::DataWalker(3pm)

Wx::Perl::DataWalker3pm

Perl extension for blah blah blah

Usage

  # alternatively, see the dataWalker.pl script in this distribution!
  use Wx::Perl::DataWalker;
  
  my $data_to_browse = {
    # complex data structure.
    # Good test: \%::
  };
  
  package MyWalkerDialog;
  our @ISA = qw(Wx::App);
  
  sub OnInit {
      my $self = shift;
      my $frame = Wx::Perl::DataWalker->new(
        {data => $data_to_browse},
        undef, -1,
        "dataWalker",
      );
      $self->SetTopWindow($frame);
      $frame->Show(1);
      $frame->SetSize(500,500);
      return 1;
  }
  
  package main;
  my $app = MyWalkerDialog->new();
  $app->MainLoop();

Overview

"Wx::Perl::DataWalker" implements a "Wx::Frame" subclass that shows a relatively simple Perl data structure browser. After opening such a frame and supplying it with a reference to an essentially arbitrary data structure, you can visually browse it by double-clicking references.

So far, there is no tree view but only a display of the current level of the data structure. You can traverse back up the structure with a back button.

Optionally, "Wx::Perl::DataWalker" displays the (approximate!) size of the data structure using "Devel::Size".

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–9
  2. 10–11
  3. 12–13

Author

Steffen Mueller, <[email protected]>

From libwx-perl-datawalker-perl 0.02-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.