need help with GUI on Perl running on Windows

Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2008
Posts: 18
Reputation: wolverine_ramir is an unknown quantity at this point 
Solved Threads: 0
wolverine_ramir wolverine_ramir is offline Offline
Newbie Poster

need help with GUI on Perl running on Windows

 
0
  #1
Feb 12th, 2008
1) is it possible that i could create GUI application under Perl (*.pl) files?
2) what are the things that i need to consider and do?
3) i tried copying a perl program from a certain website and when i tried running it on command prompt for Windows, it says an error about requiring tk.pm in perl library..
what is that and where can i have that file?

i wish you could give me a simple program on perl so that i could pattern my future programs with it.. i want my program to have buttons, windows, colored features, etc..
is it possible even i'm developing it on Windows operating system?

what i'm using is the ActivePerl 5.10.0 Build 1002... any tips? thanks
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: need help with GUI on Perl running on Windows

 
0
  #2
Feb 13th, 2008
You need perl and the Tk modules installed. I would be surprised if they are not included with the distribution of perl you are using.

Open the activestate folder and open the documentation folder (or however it is structured with Active perl 5.10). You should see a list of all the Tk modules that came with your distribution.

Tk is a sort of niche when it comes to coding perl programs, you don't find a lot of perl programmers that are familiar with Tk applications.

I suggest you post on the perl forum at www.tek-tips.com as I know there is one member there that has a lot of Tk experience.
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 237
Reputation: katharnakh is an unknown quantity at this point 
Solved Threads: 33
katharnakh's Avatar
katharnakh katharnakh is offline Offline
Posting Whiz in Training

Re: need help with GUI on Perl running on Windows

 
0
  #3
Feb 13th, 2008
Originally Posted by wolverine_ramir View Post
1) is it possible that i could create GUI application under Perl (*.pl) files?
2) what are the things that i need to consider and do?
3) i tried copying a perl program from a certain website and when i tried running it on command prompt for Windows, it says an error about requiring tk.pm in perl library..
what is that and where can i have that file?
Yes, it is possible to create GUI application with Perl
The error says, you have no module called tk.pm. For this you can install Tk tool kit for Perl and you can find it on CPAN.

i wish you could give me a simple program on perl so that i could pattern my future programs with it.. i want my program to have buttons, windows, colored features, etc..
is it possible even i'm developing it on Windows operating system?

what i'm using is the ActivePerl 5.10.0 Build 1002... any tips? thanks
Sorry, i havent tried GUI programming in Perl. You will get good resource and examples for sure when you install Tk tool kit. Go through the documentation which comes with installer.

enjoy coding...,
katharnakh.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: need help with GUI on Perl running on Windows

 
0
  #4
Feb 13th, 2008
It looks like Activeperl 5.10 comes with Tkx instead of Tk. Activeperl 5.8 comes with Tk and Tkx (I think).

http://aspn.activestate.com/ASPN/doc...0/lib/Tkx.html

So install perl 5.8 if you want to use Tk instead of Tkx.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 18
Reputation: wolverine_ramir is an unknown quantity at this point 
Solved Threads: 0
wolverine_ramir wolverine_ramir is offline Offline
Newbie Poster

Re: need help with GUI on Perl running on Windows

 
0
  #5
Feb 13th, 2008
Thank you, KevinADC.. you were right.. tkx is used rather than tk.pm... and i have tried a sample program from this link,
http://search.cpan.org/~gaas/Tkx-1.04/Tkx/Tutorial.pod
it worked... thanks everyone for the reply...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Perl Forum
Thread Tools Search this Thread



Tag cloud for Perl
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC