The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Games::Pandemic::Tk::Utils - Tk utilities for gui building

VERSION

version 0.7.0

DESCRIPTION

This module exports easy to use constants for Tk, such as @TOP to be used in place of -side = 'top'>. Since those are quite common, it's easier to use those constants.

It also provides some useful subs for tk guis.

METHODS

my $img = image( $path [, $toplevel ] );

Return a tk image loaded from $path. If the photo has already been loaded, return a handle on it. If $toplevel is given, it is used as base window to load the image.

my $img = pandemic_icon( [$toplevel] );

Return a tk image to be used as $toplevel icon throughout the game.

AUTHOR

  Jerome Quelin

COPYRIGHT AND LICENSE

This software is Copyright (c) 2009 by Jerome Quelin.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007