Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tk - insert characther to the same position ?

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
HI,

For the sake of progress indicator in a Tk text window,I'm trying to insert charachters at a fixed position,however the position does progress ,for some reason.

while {....

print "POS=$pos\n";
$txt ->insert("$pos -1 chars","$symbol[$counter1]");
$mw->update;
}

The $pos IS fixed,and still my charachters progress in the Tk text window ...
What is wrong ?
Thanks


Long live king Moshiach !
 
Could it be that you're inserting characters at the one position, and they're pushing the older characters to the right?

1
21
321
4321

is it an overwrite you're trying to do?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top