Questions tagged [perltk]

Perl's Tk module provides a complete interface to Tk, a GUI toolkit, while providing an object oriented interface to Perl code.

Tk is a graphical user interface toolkit for Perl.

95 questions
15
votes
1 answer

Perl Tk app sometimes crashes after exceeding 4GB ram usage

I have a Perl Tk GUI application that sometimes crashes after it exceeds 4GB of RAM usage. I can exceed 4GB of RAM usage in some cases using Perl Tk, and I have no issues exceeding 4GB when running tests in a console application. Operating system:…
11
votes
1 answer

Perl Tk Bind is not Number Pad return?

I'm grabbing an ISBN from the user. Probably from a barcode scanner (EAN 18 digits terminated by Return) but it may be keyed in by hand (13 digits). If it is by hand, it'll come from the number pad and may end with "Number Pad Enter". I've added…
charlesbridge
  • 1,172
  • 10
  • 21
8
votes
5 answers

How can I enhance the look of the Perl/TK GUI under Perl 5.004?

I have an application that is built to work on Windows, Linux, and Solaris that uses the Perl/TK GUI. Due to constraints, we are limited to Perl/TK only. Moreover, we are limited to an old Perl/Tk version, 5.00404. I'd like to work within these…
Igor
  • 26,650
  • 27
  • 89
  • 114
8
votes
2 answers

Trying to install MinGW and Tk for Perl on Windows 7

So... I have been trying to get this working for several weeks now. I can install MinGW through the .exe, but no-matter what I do I can't seem to get make support or ppm install MinGW to work in such a way that my compilation of Tk-804.029 will…
Chris Stevens
  • 81
  • 1
  • 2
6
votes
1 answer

Limiting scroll bar length

I am trying to create a simple notepad like GUI using Perl Tk. I have used the Scrolled widget to create a Text widget with two scrollbars - one on the right and one on the bottom. The place where the two scrollbars meet looks like this: However I…
Liam Willis
  • 661
  • 6
  • 17
5
votes
5 answers

Perl/Tk GUI for C++ Application

I have to do a college project using C++ that requires a GUI. I want to use Perl/Tk for the GUI, but I am not sure how to link the C++ to the Perl. The project requires being able to pass variables back and forth. Could anyone point me in the…
Sploody
5
votes
1 answer

How to wrap text in balloon in Perl/Tk

How can I wrap the text displayed in a balloon in Perl/Tk? my code is something like this my $balloon1 = $mw->Balloon(); my $txt = "file Name: ".$fileName."\n"."location: ".$path; $balloon1->attach($button, -balloonmsg=>$txt); But this help text in…
Kadiam
  • 303
  • 4
  • 12
4
votes
1 answer

Can a perl tk widget -command access itself?

I have a perl TK widget which has a -command callback: my $widget = $mw->Spinbox( -from => -1000, -to => 1000, -increment => 1, -width => 4, -textvariable => $textvariable, -command => sub { ... }); I would like to call a method on the widget…
Matthew Lock
  • 13,144
  • 12
  • 92
  • 130
4
votes
2 answers

Call subroutine automatically whenever cursor position changes in a Text widget

I am using the Tk::Text module. I want that whenever the user changes the position of the cursor inside the Tk::Text module, it should act as a trigger to call a subroutine which I have written. How do I go about implementing this? EDIT: As answered…
Liam Willis
  • 661
  • 6
  • 17
3
votes
1 answer

Why do I have problems constructing a complicated GUI using Perl-Tk on Windows?

I have a Perl-Tk GUI with about 50 sub-windows. In each sub-window there are about 50 buttons and 50 menus (each menu has about 4 options). When I run it on UNIX/Linux/Solaris, it runs smoothly. When I run it on Windows, the GUI freezes in the…
Gal Goldman
  • 8,641
  • 11
  • 45
  • 45
3
votes
1 answer

Executing commands using Button widget in Perl-Tk

#!/usr/local/bin/perl use Tk; # Main Window $mw = new MainWindow; $label = $mw -> Label(-text=>"Hello World") -> pack(); $button = $mw -> Button(-text => "Quit", -command => sub { exit }) -> pack(); MainLoop; In this code when the…
Chankey Pathak
  • 21,187
  • 12
  • 85
  • 133
3
votes
1 answer

Stringify Struct in Perl

In my program, I have a section of code that updates a list box depending on the value of another list box. The code that does this looks a little like this. $listBox1->bind('<>' => sub { $listBox2->delete(0, 'end'); …
Dan
  • 7,286
  • 6
  • 49
  • 114
3
votes
6 answers

What do these Perl/Tk errors from Tk::After mean?

Here are the errors: $ perl ftper.pl Use of uninitialized value $id in hash element at /usr/lib/perl5/vendor_perl/5.1 /i686-cygwin/Tk/After.pm line 39. se of uninitialized value $id in hash element at…
Paul
  • 198
  • 1
  • 9
  • 22
3
votes
1 answer

How can I create a non-modal dialog in Perl/Tk?

I am learning Perl/Tk. I want to give alert to the user whenever he/she receives the mail. I have planned to use message box in Tk, but it is expecting the user to click ok or cancel button. Until user clicked the any one button it wont do any…
kiruthika
  • 2,155
  • 7
  • 26
  • 33
3
votes
3 answers

Drop down menu using Perl/Tk code?

I am new to Perl/Tk and just want to know how I can use a drop down menu in a Perl/Tk-based GUI and how to populate it? Can anyone please help me out with this?
pkm
  • 2,683
  • 2
  • 29
  • 44
1
2 3 4 5 6 7