[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-11 Thread John McCabe
John McCabe added the comment: Thank you for that information and analysis Terry. As you can see, at the end of the addNew() function in the original example, I'd added: --- if initialLeft is not None: rightBox.insert(tk.END, initialLeft)

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: With a truly minimal but reproducible example, I was able to understand and experiment. As is, widget creation is done without the event loop running. Displaying the message box shifts grabs the internal focus but also displays the unfocused tk window.

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-10 Thread John McCabe
John McCabe added the comment: Apologies, I couldn't find an edit button! That last comment should've said: "As before, changing: self.createWidgets() to: self.after_idle(self.createWidgets) avoids the issue." -- ___ Python tracker

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-10 Thread John McCabe
John McCabe added the comment: Fair point about being "too" long. Having seen a "short" example that, unfortunately, didn't actually exhibit the problem, I thought that providing a "smallish" example that definitely did exhibit the issue was quicker than, potentially, spending more time

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: No problem. While your failing example was 'too long', you *did* search and find the appropriate previous issue, with my inadequate response and incorrect resolution, even though closed. I appreciate having my understanding fixed. IDLE uses several entry

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-09 Thread John McCabe
John McCabe added the comment: Thank you all for your time. I hope you don't feel it has been wasted since, at the very least, it confirms an issue in tkinter usage, albeit that the actual cause of the issue is TK itself. -- ___ Python tracker

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added this note to #9673 after rereading the posts and the 2010 tkinter list thread. "My testing was inadequate. From #42867, it appears that 0. the bug is limited to Windows; 1. opening a canned dialog or message box is part of getting the buggy

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
John McCabe added the comment: @epaine Thank you for your comments. Although the order of events in the example you quoted isn't the same as in the application I'm using (tk.messagebox.askquestion() is called a long time before the Enter widget is created in the application, not the other

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread E. Paine
E. Paine added the comment: This is a Tk/Windows issue, not tkinter. I tested the following on Windows 10 using Tk 8.6.9: # Our entry pack [entry .e] # Causes the entry to fail #tk_messageBox -title Title -message Message #after 0 tk_messageBox -title Title -message Message # Does not

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
John McCabe added the comment: Thank you. Wrt to your initial suggestion, I recognise Python's popularity will make things busy, and I will ask if anyone knows of a workaround in other fora, but a bug's a bug and, IMO, if something behaves differently on different platforms, using packages

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread Christian Heimes
Christian Heimes added the comment: I'm involving TJ and Serhiy. They might have free resources and might be able to assist. I initially suggested to get assistance in user forums, because we have very limited resources. To give you an impression, there are more than 7,500 open bugs on BPO

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
John McCabe added the comment: In addition, changing "Entry" to "Text" (+ necessary associated changes) makes no difference to the outcome. Removing the call to tk.messagebox.askquestion() does. It appears that tk.messagebox.askquestion() is screwing something up on Windows; perhaps it's

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
John McCabe added the comment: It's reproducible in both 3.8 and 3.9 on Windows 10. -- versions: +Python 3.9 -Python 3.6 ___ Python tracker ___

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread Christian Heimes
Christian Heimes added the comment: Can your produce the issue with Python 3.8 or newer on any platform? 3.6 and 3.7 are in security fix-only mode. If it's truly a bug in Python, then we won't fix the issue any way. -- ___ Python tracker

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
John McCabe added the comment: Is behaviour that differs between platforms, using components that are listed in the "classification" -> "Components" section NOT a bug then? -- ___ Python tracker

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread Christian Heimes
Christian Heimes added the comment: Hi, bugs.python.org is an issue tracker for bugs and feature requests. Please use platforms like Python user mailing list, stack overflow, or reddit for general help with Python and libraries. -- nosy: +christian.heimes

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
New submission from John McCabe : I've built an application using tkinter (see below). I'm fairly new to tkinter, despite having substantial software experience (33 years), so the layout might be a bit odd/wrong, and the example obviously doesn't follow PEP-8 guidelines, however...