in reply to Re^2: Wx with Tk
in thread Wx with Tk
Anyways, to your problem. I am almost sure there is a plain WxCanvas, the GLCanvas is probably an extra type. Google for "Wx canvas".
So, why not just use the WxCanvas, instead of a Tk::Canvas? I think you are mistaken to believe that Wx dosn't have a 2d canvas widget. So google for "WxPerl canvas", and you can be pure Wx. The only reason to keep Tk is if you have some complex Tk::Canvas code that you want to use, but don't quite want to rewrite it in Wx. ;-)
But if you want to go that mixed route, just setup a timer in Wx
use Tk qw/MainLoop tkinit DoOneEvent exit DONT_WAIT ALL_EVENTS/; #.... setup your Tk code without a MainLoop statement #then in your Wx timer, put $mw->DoOneEvent( DONT_WAIT | ALL_EVENTS ); # to make Tk responsive
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Tk FBox utf8 problem solved!
by Khariton (Sexton) on Nov 24, 2010 at 19:16 UTC | |
by zentara (Cardinal) on Nov 25, 2010 at 12:02 UTC | |
by Khariton (Sexton) on Nov 25, 2010 at 18:28 UTC | |
by zentara (Cardinal) on Nov 26, 2010 at 13:58 UTC | |
|
Re^4: Wx with Tk
by Anonymous Monk on Nov 23, 2010 at 14:02 UTC | |
by zentara (Cardinal) on Nov 23, 2010 at 14:14 UTC |