Woops Begin forwarded message:
*From:* Alex < reply+i-2784720-7298c9ca04eb299d5d048ccbac880cc879c5ad67-21...@reply.github.com > *Date:* 10 January, 2012 7:58:06 AM EST *To:* Kartik Thakore <thakore.kar...@gmail.com> *Subject:* *[SDLx-Widget] SYNOPSIS-code doesn't work: missing font (#2)* Hi! The code in SYNOPSIS does not work as it is, it dies with an error: Attribute (font) is required at menu.pl line 14 Here is some demo code: perl``` #!perl use strict; use warnings; use SDL; use SDLx::App; use SDLx::Widget::Menu; my $app = SDLx::App->new( title => 'Menu demo', exit_on_quit => 1, ); my $menu = SDLx::Widget::Menu->new->items( 'New Game' => \&play, 'Options' => \&settings, 'Quit' => \&quit, ); $app->run(); exit(0); Maybe you can add default font support as it is done in SDLx::Font? hth, Alex --- Reply to this email directly or view it on GitHub: https://github.com/PerlGameDev/SDLx-Widget/issues/2