100 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
71
views
Tk text widget - why does deleteTextTaggedWith fail?
my $mw = MainWindow->new;
my $text = $mw->Text->pack;
$text->insert('end', 'hello world', 'mytag');
$text->deleteTextTaggedWith('mytag');
MainLoop;
The deleteTextTaggedWith causes:
...
2
votes
2
answers
63
views
Why does a second running copy of perl tk script does not pick up Xresources
When I run a two instances of the same perl tk script at the same time, the second one does not pick up the X resources. How can I fix this? For example (for simplicity):
my $mw = MainWindow->new(-...
1
vote
1
answer
100
views
How can I embed an X window in a perl/Tk notebook widget?
I found an example of how to embed an arbitrary X application window in a Perl/Tk Notebook widget. However, I am unable to make it work. Specifically, the call to X->ReparentWindow does not work. ...
0
votes
0
answers
67
views
Issue with perl/Tk::Date module
I create a date widget like this:
$GUI{time} = $GUI{timeframe}->Date(-value => ‘now’,
-datefmt => ‘%4y %2m %2d,
-...
0
votes
0
answers
799
views
Error installing perl Tk module using cpan
I am trying to install Tk using cpan I get an error. This is on a PC, Windows 10, Strawberry Perl 5.38.1
Attempting a basic install of the Tk module, everything downloads, makefile runs to a point, ...
2
votes
1
answer
228
views
How do I create a Tk::Dialog for Yes/No user input?
I am trying to use a simple Tk Yes/No Dialog in Perl. I have the following script based upon the example from metacpan:
#!/usr/bin/perl
use strict;
use warnings;
use Tk::Dialog;
my $mw->Dialog-&...
2
votes
1
answer
99
views
How to send a widget object created later to callback in Tk?
I am new to Perl Tk.
I have option menu. In its callback, I want to pass a table object which is created later. As per the selection of the option, I want to render specific data into the table.
...
1
vote
1
answer
84
views
Capturing scalar variable in Perl Tk radiobutton form
I am trying to capture the value of the marked radio button after submit is pressed but can't seem to get it to work. What I would like is for the form/window to close when submit is pressed and for ...
2
votes
2
answers
112
views
Is there a way to use balloon on radiobutton in Perl Tk?
Is there a way to use balloon on radiobutton in Perl Tk? I want to display a balloonmsg and statusmsg when I hover over the buttons, if possible. I've googled but it doesn't seem like there is any ...
15
votes
1
answer
672
views
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 ...
2
votes
1
answer
332
views
Perl Tk Formatting Text in a button
The code below creates Perl/Tk buttons filled with each event's details from the hash %events. Is there a way to format the text inside the buttons so that it appears in aligned columns in the manner ...
4
votes
1
answer
133
views
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 =...
2
votes
1
answer
640
views
Perl Tk Key Binding to Enter
I try to make a GUI which has $cmd_entry to take the input and print the input on $log_frame after "enter" key is pressed. However, the binding does not work well. I do not know why the callback ...
0
votes
1
answer
161
views
Need a text box help in PerlTk
I need a text box setting in perlTk such that i can enter 2 digit number with automatically added separator.
Eg. if there are 5 entries of two digits number namely 52, 25, 69, 45, 15, in text box if ...
3
votes
1
answer
115
views
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('<<...
Dan's user avatar
- 7,904