P5-test-tk

Jul 20, 2023

Testing Tk widgets

TestTk aims to assist in the testing of Perl/Tk widgets.

createapp creates a MainWindow widget and places it in the variable $app. It sets a timer with delay $delay to start the internal test routine.

starttesting launches the main loop and sets a timer with delay $delay to start the internal test routine.

When testing is done the MainWindow is destroyed and the test script continues.

You can set a command line parameter show to test command on the command line. eg perl -Mblib t/My-Test.t show. The application will not terminate so you can visually inspect it.

It will perform two tests. You need to account for these when you set your number of tests.

If you are not on Windows and no XServer is running, all tests will be skipped.



Checkout these related ports:
  • Ztoolkit - GUI toolkit heavily inspired by GTK
  • Xwallpaper - Xwallpaper utility allows you to set image files as your X wallpaper
  • Xview - X Window-System-based Visual/Integrated Environment for Workstations
  • Xview-clients - OpenLook applications and man pages
  • Xmhtml - Motif widget set for displaying HTML 3.2 documents
  • Xforms - Graphical user interface toolkit for X Window System
  • Xbae - Motif-based widget which displays a grid of cells as a spreadsheet
  • Wxgtk32 - GUI toolkit (wxWidgets) with ${FLAVORS/k/&+/tu} bindings
  • Wxgtk30 - The wxWidgets GUI toolkit with GTK+ bindings
  • Wmapp - DockApp Graphics Library
  • Wlroots015 - Modular Wayland compositor library (deprecated 0.15.* series)
  • Wlroots - Modular Wayland compositor library
  • Wlroots-devel - Modular Wayland compositor library (development snapshot)
  • Vte3 - Terminal widget with improved accessibility and I18N support
  • Vte -