Tk Source Code

Artifact [9150566f]
Login

Artifact 9150566f5b333c97d814225f28dd91ef7a7de217:

Ticket change [9150566f] - Ticket [3609608f] Windows Text hi-lights disappear when text loses focus status still Open with 8 other changes by roseman 2015-08-31 19:09:37.
D 2015-08-31T19:09:37.656
J assignee aku
J closer nobody
J comment On\sWindows\sthe\stext\swidget\shi-lights\swill\sdisappear\swhen\stext\swidget\sloses\sfocus.\s\sLinux\sand\sMac\sOS\sX\sTk\sbehaves\sappropriately.\s\sThis\sbug\sis\sgenerated\sfrom\sa\snumber\sof\sbugs\sfor\sIDLE\s(Python's\sIDE)\shere\shttp://bugs.python.org/issue14146.\s\sOn\sWindows\sthe\sIDLE\sdebugger\sno\slonger\shi-lights\sthe\scurrent\sline\sin\sthe\seditor.\s\sOn\sWindows\sthe\sfind/replace\sfunctions\sare\snot\sfunctioning\sproperly\sbecause\sfound\stext\sis\snot\shi-lighted.\s\sThe\sissue\swas\stested\susing\sTk\s8.5.13\sand\sTk\s8.6\sboth\sexhibit\sthe\ssame\sproblem.\s\sWe\screated\sa\ssmall\stest\sprogram\sto\sreproduce\sthis\sbug\swith\sPython\s3.x\sand\stkinter:\r\n\r\nfrom\stkinter\simport\s*\r\n\r\nmain\s=\sTk()\r\ntext\s=\sText(main,\swidth=40,\sheight=10,\swrap="char")\r\ntext.pack()\r\ntext.insert(INSERT,\s"".join(map(str,\srange(100))))\r\ntext.tag_add(SEL,\s"1.0",\s"end")\r\ntext.focus_set()\r\n\r\ndef\sjump():\r\n\s\s\s\stext.after(500,\sbtn.focus_set)\r\n\s\s\s\stext.after(1000,\stext.focus_set)\r\n\r\nbtn\s=\sButton(main,\stext="Click\sme",\scommand=jump)\r\nbtn.pack()\r\nmain.mainloop()\r\n\r\nThanks\sfor\syour\shelp!
J icomment This\scan\sbe\sfixed\sby\susing\sthe\s"inactiveselectbackground"\soption\sfor\stext\swidgets.\sNot\ssure\sif\sit's\scorrect\sthat\sthis\sdefaults\sto\sempty\son\swin32\sor\snot...
J login roseman
J mimetype text/plain
J severity Minor
J username roseman
K 3609608fffffffffffffffffffffffffffffffff
U roseman
Z 9777160722078b88aec15e8a6de9f90d