wallythewhale
Technical User
Can some of the window be defined in a .pm? For example:
Versions.pm
use Tk;
sub CreateWin {
$mainWin = MainWindow->new();
...
$task_id_frame = $mainFrameData->Frame()->pack(-anchor => "w");
...
} # end sub CreateWin
Versions.pl
use Tk;
use Versions;
Versions::CreateWin;
$rbtnRv = $Versions::task_id_frame->Radiobutton(...
...
MainLoop();
...
I get this error:
Can't call method "Radiobutton" on an undefined value at...
Versions.pm
use Tk;
sub CreateWin {
$mainWin = MainWindow->new();
...
$task_id_frame = $mainFrameData->Frame()->pack(-anchor => "w");
...
} # end sub CreateWin
Versions.pl
use Tk;
use Versions;
Versions::CreateWin;
$rbtnRv = $Versions::task_id_frame->Radiobutton(...
...
MainLoop();
...
I get this error:
Can't call method "Radiobutton" on an undefined value at...