Message384682
@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 way round), what you've suggested, and a bit of extra thought, has led to a solution for me. I wrapped the self.createWidgets call in self.after_idle() (so self.after_idle(self.createWidgets)) and that appears to do the job.
Many thanks; it's appreciated. |
|
Date |
User |
Action |
Args |
2021-01-08 17:41:15 | jmccabe | set | recipients:
+ jmccabe, terry.reedy, christian.heimes, serhiy.storchaka, epaine |
2021-01-08 17:41:15 | jmccabe | set | messageid: <1610127675.59.0.889965737609.issue42867@roundup.psfhosted.org> |
2021-01-08 17:41:15 | jmccabe | link | issue42867 messages |
2021-01-08 17:41:15 | jmccabe | create | |
|