GUI в Perl (Tk)

This is a simple example of Tk module usage for GUI creation in Perl. Here is the script to download mp3 files from Last.fm (available only if you're a paid or recently registered member).
A final version of the script will look like this:

Let's start. First of all - modules import:

Variables definition for further usage:

Now let's create a window and control elements:

Creating and filling a table containing tracks information:

Okay, now let's place control elements, login and password input fields.

Functions used in the program:

You can download the source code: here
P.S. This code is far from perfect

Leave a Reply

Your email address will not be published. Required fields are marked *