Menu ▾ ▴

#11 TkCon I don't know if they are bugs or feature request

open
nobody
None
5
2017-06-23
2017-06-23
No

I was trying to use TkCon on a Raspberry Pi, of all things, whiloe trying to port my developed code, for a new product, over to the Pi, and was needing a console so I can see why my gpio button presses aren't triggering my code to do what it needs to do.

I've got plenty of debug messages in the "gpio" code, so I see it doing the rising and falling, based on the button action callback, however what I had it tied to previously "on a WES2009 system", tested without gpio, but tied to a bind of <key-1> .... -4>, doesn't seem to be happening.</key-1>

Anyway tried to get tkcon involved so I have a command prompt available, to inspect other things, that should be happening.

But NOT having arrow key movement and command recall <kp_up|down|right|left|home|end> defined really slows the progress.</kp_up|down|right|left|home|end>

That was with TkCon2.5, I found a link to the code for 2.7 and have copied that in, and made a package out of it, so I can requestr whichever i want.
Since I copied and made the package for 2.7, I thought I'd look at the arrow key positioning problem, and it was easy enough to fix the KP_Home and KP_End keys, the biggest trick was getting the right key name, and I had to use the example from the TclTk documentation that had a little code snippet to get the name of the key pressed. :hint, I used the names captured in the "command recall" statement used previously.

I couldn't figure out the logic for the function call "tk:TextSetCursor" to figure out how to -/+ 1 cursor position. I'm sure whoever wrote that will know hos to fix easily.

Discussion


Log in to post a comment.