Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10154 - Bug in Tk prevents <control>-v pasting
Summary: Bug in Tk prevents <control>-v pasting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-03 16:15 UTC by Stephen Boulet
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Boulet 2002-11-03 16:15:38 UTC
A bug in Tk prevents tcltk apps in linux from being able to use <control>-v
pasting in apps like idle.py (part of python).

The workaround is to comment out these lines in the file
"/usr/lib/tk8.3/text.tcl", which is part of dev-lang/tk-8.3.3-r2 like so:

#if {[string compare $tcl_platform(platform) "windows"]} {
#bind Text <Control-v> {
#    if {!$tk_strictMotif} {
#       tkTextScrollPages %W 1
#    }
#}
#}

If I knew how to use sed I'd write a script to do that.  ;)

Here's a link to the Tk bug report:

http://sourceforge.net/tracker/?func=detail&aid=605277&group_id=12997&atid=112997
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-11-11 10:49:39 UTC
Fixed. Available for testing as dev-lang/tk-8.3.3-r3.
Comment 2 Stephen Boulet 2002-11-14 08:14:24 UTC
The fix works for me. You can paste now.

Note that this fixes the issue where you can't paste. There is still the Tk bug
were pasting over highlighted text  won't replace the highlighted text though.
Hopefully the next version of Tk solves that one.