Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: right to left Tk text widgetby wolfger (Deacon) |
on Dec 06, 2004 at 20:45 UTC ( [id://412750]=note: print w/replies, xml ) | Need Help?? |
Tricky problem. I threw together some code that *almost* works. Feel free to expand on this. Current bugs I have noticed are: 1) Backspace and delete should be re-mapped to one another (to account for the backwords nature of the writing). 2) Sometime it just plain goofs, and doesn't print letters in the proper (reversed) order. This bug seems to have something to do with using the mouse to change cursor position, but I can't tell for sure. 3) cursor keys will not navigate properly.
edit: I think I figured bug 2 out... text is printed out of order if you hit a second key before the first key is released. Unfortunately, switching KeyRelease with KeyPress doesn't make everything work. Text is still sometimes out of order, for no apparant reason.
In Section
Seekers of Perl Wisdom
|
|