Re: Tk question about -command=>sub{} and Text Insert()

2007-11-19 Thread Panda-X
2007/11/19, zentara <[EMAIL PROTECTED]>: > > On Mon, 19 Nov 2007 00:14:29 +0800, [EMAIL PROTECTED] (Panda-X) > wrote: > > >Hi all, > > > >Below is my code. With this code, 12345 will show at once > >after 5 seconds I click the button. > >But what I want is to insert() each number per second. > >Is

Re: Tk question about -command=>sub{} and Text Insert()

2007-11-18 Thread Tom Phoenix
On 11/18/07, Panda-X <[EMAIL PROTECTED]> wrote: > Any more clues ? This is a forum for Perl beginners, but there are forums available specifically for all of the major modules used with Perl. Some modules have more than one forum. As you might expect, you'll generally get better answers faster by

Re: Tk question about -command=>sub{} and Text Insert()

2007-11-18 Thread Panda-X
2007/11/19, Tom Phoenix <[EMAIL PROTECTED]>: > > On 11/18/07, Panda-X <[EMAIL PROTECTED]> wrote: > > > But what I want is to insert() each number per second. > > > sub RollText{ > > for ( 1..5 ) { > > $_[0] ->{mw}{box} -> insert ( 'end', $_ ) ; > > sleep 1; > > } > > } > > You p

Re: Tk question about -command=>sub{} and Text Insert()

2007-11-18 Thread Tom Phoenix
On 11/18/07, Panda-X <[EMAIL PROTECTED]> wrote: > But what I want is to insert() each number per second. > sub RollText{ > for ( 1..5 ) { > $_[0] ->{mw}{box} -> insert ( 'end', $_ ) ; > sleep 1; > } > } You probably don't want sleep() there; the after() method is generally th

Tk question about -command=>sub{} and Text Insert()

2007-11-18 Thread Panda-X
Hi all, Below is my code. With this code, 12345 will show at once after 5 seconds I click the button. But what I want is to insert() each number per second. Is that something I can do like $| = 1 in such case ? At least, could anybody tell this is the behavior of insert () ? or it's the behavior

Re: perl tk question

2007-09-25 Thread patmarbidon
can you add after your 'insert' $text1->update() to make a refresh. You need an update if there is no new event in your widget. Be areful : Don't use update for each line if you insert a lot of lines but only at the end of a batch or only every 100 lines to keep good performance. macus

perl tk question

2007-09-25 Thread macuser9214
I am trying to make a tk app that parses the qrz callsign ham radio database: It's not working. I'm trying to get information from the text field, and the result in the gray box. #!/usr/bin/perl use Tk; use LWP::Simple; use LWP::UserAgent; my $main = MainWindow -> new(); $entr

[SOLVED] RE: Could you please help with a PERL/TK question.

2004-07-12 Thread Marco Perl
PM > > To: ; [EMAIL PROTECTED] > > Subject: Could you please help with a PERL/TK > question. > > > > > > > > Hi, I developed a perl/TK script in Win-2000 > > environment. > > when I run it the DOS-screen pops up and displays > my > > program e

Launching scripts via command prompt [WAS RE: Could you please help with a PERL/TK question.]

2004-07-12 Thread Tim Johnson
istribution. But if that's the case, then you won't be able to double-click anyway. -Original Message- From: Toby Stuart [mailto:[EMAIL PROTECTED] Sent: Sun 7/11/2004 11:34 PM To: 'Marco Perl' Cc: '[EMAIL PROTECTED]' Subject:

RE: Could you please help with a PERL/TK question.

2004-07-11 Thread Toby Stuart
> -Original Message- > From: Marco Perl [mailto:[EMAIL PROTECTED] > Sent: Monday, 12 July 2004 4:19 PM > To: ; [EMAIL PROTECTED] > Subject: Could you please help with a PERL/TK question. > > > > Hi, I developed a perl/TK script in Win-2000 > environment.

Could you please help with a PERL/TK question.

2004-07-11 Thread Marco Perl
Hi, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up and displays my program errors. but this screen closes so fast that its impossible to read the error. so, how do I debug my perl.ptk script or how do I slow down the DOS-screen to read the errors? tha

Re: A tk question

2002-01-08 Thread walter valenti
I think thath is a problem of implementation of TK on Win/DOS. On Linux with Gnome Desktop i'm tries something script with TK, opening new window by a button, without problem. if you post all the code is best... Walter > I have a TK issue. > > This code creates the initial TK box. > > >>

A tk question

2002-01-07 Thread Murzc
I have a TK issue. This code creates the initial TK box. >> use vars qw/$TOP/; >> $TOP = Tk::MainWindow->new; >> $TOP->title('blah blah'); >> $TOP->configure(-background => lc('PeachPuff1')); etc.(a lot more code) When the user clicks the button of his choice, the TK box disappears into

Tk Question

2001-05-29 Thread Bornaz, Daniel
Can anyone help me by telling me how can I scroll in program to the end of a Scrolled object after adding some text that goes out of the displayed area? Many thanks in advance, Daniel Bornaz GBS Specialist ~~ Compaq Computer Romania 77 Emanoil Porumbaru St. Bucha