Hi,
I am trying to learn perl tk. Any help to find the error in this code
greatly appreciated.
Running this code generates below error -
Can't call method "g_start" without a package or object reference at progressbar.pl line 17.
#!/Perl/bin/perl -w
use strict;
use Tkx;
my $mw = Tkx::widget->new(".");
$mw->g_wm_title ("Title");
$mw->g_wm_geometry ("500x200+500+250");
my $progress = $mw->new_ttk__frame (-padding => "3 3 3 3", -relief => "flat");
$progress->g_grid (-column => 0, -row => 1, -sticky => "nwes");
my $pbar = $progress->new_ttk__progressbar (-orient => "horizontal", -
length => 200, -mode => "indeterminate")->g_grid (-column => 0, -row
0, -sticky => "w");
$pbar->g_start();
#$pbar->g_stop();
Tkx::MainLoop()
regards
aroul.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 72:07:01 |
Calls: | 8,084 |
Calls today: | 2 |
Files: | 13,069 |
Messages: | 5,850,068 |