[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2015-08-21 Thread Mark Roseman
Mark Roseman added the comment: Did a quick check... this approach seems to work. Only change was in step 4 should set both ._w and ._name for the widget object -- ___ Python tracker __

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2015-08-21 Thread Mark Roseman
Mark Roseman added the comment: Just came across this one (Terry I'm sure can figure out why). I'm sympathetic with Guilherme's wish that Tk had done this one differently, as an option to specify an existing text widget peer when creating a text widget, rather than having the original spawn a

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-13 Thread Gregory HOULDSWORTH
Gregory HOULDSWORTH added the comment: The Text instance created by the last patch has the same parent -in the Python w hierarchy- as the "model" widget regardless of the actual parent implied by the given pathname. Further, pathname is really a tk level construct: in Python this hierarchy is exp

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-11 Thread Guilherme Polo
Guilherme Polo added the comment: If someone decides to commit this, please check that the name of the widget in Tcl is always adequate. -- ___ Python tracker ___ ___

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-11 Thread Gregory HOULDSWORTH
Gregory HOULDSWORTH added the comment: Noted: I assumed 'works for me' meant user approval of proposed fix, pending 'official' sanction. Didn't catch the BNF-like syntax for issue linking, hence the literal <>'s in my original post. Thank you for clarifying those. -- __

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: (This issue only applies to 3.3+ because the method is new in 3.3.) Gregory: 'works for me' means that the issue can be closed without a patch because Python actually 'works' for the example presented. I presume you mean that the tkinter works *after* you appl

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-09 Thread Gregory HOULDSWORTH
Gregory HOULDSWORTH added the comment: Splendid, it works and is indeed far more elegant. Well done there, thanks. -- resolution: -> works for me ___ Python tracker ___

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-09 Thread Guilherme Polo
Guilherme Polo added the comment: Here is a quick patch for it: http://pastebin.com/m1XQBGqU (I forgot my password for the tracker, and leaving home right now). Does it work for you ? -- ___ Python tracker ___

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-09 Thread Guilherme Polo
Guilherme Polo added the comment: Uh.. well observed. It sounds like you are the first actual user of peer_create. Now I wish Tk had done this in a different way: when creating a text widget, specificy that it is a peer of some other text widget via an option ("-peer w" for example). If possibl

[issue17945] tkinter/Python 3.3.0: peer_create doesn't instantiate Text

2013-05-09 Thread Gregory HOULDSWORTH
New submission from Gregory HOULDSWORTH: Python version: 3.3.0 32bit OS: Windows 7 Service Pack 1 64bit The peer_create method of the Text class, introduced in changeset <71041c0dedd5> in response to issue <2843> creates a tk text widget but does not instantiate Text. Because they don't exist as