I'm about to try it out on Tk 800.24 in the same perl#!/usr/bin/perl -w use strict; use Tk; my $mw = MainWindow->new( -title=>"Foo!", ); my $f = $mw->Frame( -width=>400, -height=>400, )->pack; $\ = "\n"; print "Tk is $Tk::VERSION; Window id is ", $f->winfo('id'); my $child = $mw->Toplevel( -title => "Bar!", -use => $f->winfo('id'), ); $child->Label( -text=>"Bar!", )->pack; MainLoop(); __END__ Tk is 800.023; Window id is 0x190274 '0x190274' isn't numeric at C:/Perl/site/lib/Tk/Widget.pm line 188. Tk::Widget::new('Tk::Toplevel', 'MainWindow=HASH(0x1ab11dc)', '-ti +tle', 'Bar!', '-use', '0x190274') called at C:/Perl/site/lib/Tk/Widge +t.pm line 247 Tk::Widget::__ANON__('MainWindow=HASH(0x1ab11dc)', '-title', 'Bar! +', '-use', '0x190274') called at foy line 19
Bah, forget it. This is yet another eason I say forget Tk, just use WxPerl.
jsprat: kickass. I've had similar problems when inlining images (--data). I had no idea they had to be base64 encoded. Where is this documented (i know the err kinda gives it away, but i've no idea what the module had expected, and well, looking at the source is something I forgot to do)?
____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.
In reply to Re: '0x1b03b2' Isn't Numeric
by PodMaster
in thread '0x1b03b2' Isn't Numeric
by Jeffers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |