in reply to Re^4: setting up multiple editors in Tkx
in thread setting up multiple editors in Tkx

I don't understand; first it has to compile
sub Create_Win { my ($i) = @_; my $mw_sp = Tkx::widget->new("."); my $sp = $mw_sp->new_toplevel(); $sp->g_wm_title( $i ); ## $sp->OnDestroy( [ &Report_Des, $i ] ); # bad option "OnDestroy": + must be cget or configure $sp->g_bind( '<Destroy>', [ \&Report_Des, $i ] ); Tkx::package_require("BWidget"); # new_ScrolledWindow my $sw = $sp->new_ScrolledWindow(); $sw->g_pack( -fill => "both", -expand => 1, ); $mw_sp->configure( -menu => mk_menu($mw_sp) ); }

Replies are listed 'Best First'.
Re^6: setting up multiple editors in Tkx
by momo33 (Beadle) on Jul 14, 2009 at 05:44 UTC
    Fixed in the original question. Now I do not get a menu.
      Maybe mk_menu should return something, like tkx-ed's mk_menu does?

      :)