27 Nov 2013 11:31:04 UTC
- Distribution: Tk-WidgetDump
- Module version: 1.39
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (2)
- Testers (360 / 0 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Activity24 month
- Download (12.9KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSREZIC Slaven Rezićand 1 contributors
- Slaven Rezic (email@example.com)
Tk::WidgetDump - dump the widget hierarchie
In a script:
use Tk::WidgetDump; # optional $mw = new MainWindow; $mw->WidgetDump; # usually before MainLoop
From the command line for a quick widget option test:
perl -MTk -MTk::WidgetDump -e '$mw=tkinit; $mw->Button->pack; $mw->WidgetDump; MainLoop'
Tk::WidgetDumphelps in debugging Perl/Tk applications. By calling the
WidgetDumpmethod, a new toplevel with the widget hierarchie will be displayed. The hierarchie can always be refreshed by the Refresh button (e.g. if new widgets are added after calling the
By double-clicking on a widget entry, the widget flashes and a new toplevel is opened containing the configuration options of the widget. It also displays other characteristics of the widget like children and parent widgets, size, position, geometry management and server parameters. Configuration values can also be changed on the fly. Furthermore it is possible:
to navigate to the children or parents
to call widget methods interactively
to display internal widget data with Tk::ObjScanner (if available)
If you want to call widget methods, you have to enter the method name with arguments only, e.g. (for creating a line on a canvas):
WidgetDumpis a pseudo widget, it cannot be configured itself.
Changing configuration values
Changes are not reflected in the configuration window, you have to hit the "Refresh" button.
Tk::WidgetDump does not follow the conventions of a "real" widget (ConfiSpecs etc.)
The number of open windows may be confusing
Slaven Rezic (firstname.lastname@example.org)
Module Install Instructions
To install Tk::WidgetDump, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Tk::WidgetDump
For more information on module installation, please visit the detailed CPAN module installation guide.