In a wish started in a terminal or in TkCon the initial output is:
0 3.22 >><<
5.0 6.22 >><<
Only at the second attempt, dlineinfo returns the values. It always
happens in my program. In TkCon it works sometimes.
What's wrong here?
Torsten <tma012009@googlemail.com> wrote:
In a wish started in a terminal or in TkCon the initial output is:
0 3.22 >><<
5.0 6.22 >><<
Under Linux, in a terminal, this is the output on the first try:
2.0 3.22 >>3 17 56 14 11<<
5.0 6.22 >>3 59 56 14 11<<
So the lack of output may be a windows issue.
Only at the second attempt, dlineinfo returns the values. It always
happens in my program. In TkCon it works sometimes.
What's wrong here?
Try an "update" before you do your first attempt under windows. Maybe
some portion of the update events are not finished running yet when
your first try occurs.
"If the display line containing _index_ is not visible on the screen
then the return value is an empty list."
To get a non-empty dlineinfo result, you have to make sure that the
display line containing the index passed to the command is visible on
the screen. You can achieve this by inserting
tkwait visibility .txt1
or
update idletasks
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 463 |
Nodes: | 16 (2 / 14) |
Uptime: | 156:56:52 |
Calls: | 9,384 |
Calls today: | 4 |
Files: | 13,561 |
Messages: | 6,095,919 |