[issue22061] turtledemo doesn't launch due to changes in tkinter
Serhiy Storchaka added the comment: Here is a patch which replaces obsolete and non-working menu creation code by modernized code. Now menu should be correctly displayed on MacOS. -- Added file: http://bugs.python.org/file36084/turtledemo_menu.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22061 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22061] turtledemo doesn't launch due to changes in tkinter
Roundup Robot added the comment: New changeset 3c4d45f73622 by Terry Jan Reedy in branch '2.7': Issue #22061: remove call of useless function slated for removal. http://hg.python.org/cpython/rev/3c4d45f73622 New changeset 976f31b2858b by Terry Jan Reedy in branch '3.4': Issue #22061: remove call of useless function slated for removal. http://hg.python.org/cpython/rev/976f31b2858b New changeset 9e9e6e9f4cce by Terry Jan Reedy in branch 'default': Issue #22061: remove call of useless function slated for removal. http://hg.python.org/cpython/rev/9e9e6e9f4cce -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22061 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22061] turtledemo doesn't launch due to changes in tkinter
New submission from Lita Cho: I updated my source code, and it looks like turtledemo doesn't launch anymore. I get the following error: Traceback (most recent call last): File /Users/litacho/Development/cpython/Lib/runpy.py, line 170, in _run_module_as_main __main__, mod_spec) File /Users/litacho/Development/cpython/Lib/runpy.py, line 85, in _run_code exec(code, run_globals) File /Users/litacho/Development/cpython/Lib/turtledemo/__main__.py, line 328, in module main() File /Users/litacho/Development/cpython/Lib/turtledemo/__main__.py, line 324, in main demo = DemoWindow() File /Users/litacho/Development/cpython/Lib/turtledemo/__main__.py, line 124, in __init__ self.mBar.tk_menuBar(self.ExamplesBtn, self.OptionsBtn) AttributeError: 'Frame' object has no attribute 'tk_menuBar' I dug into it and it looks like tk_menuBar was removed due to a fix in issue4350. If tk_menuBar needs to be removed, what method does turtledemo need to call instead to propagate its panels? -- messages: 223899 nosy: Lita.Cho, jesstess, serhiy.storchaka, terry.reedy priority: normal severity: normal status: open title: turtledemo doesn't launch due to changes in tkinter type: crash versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22061 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22061] turtledemo doesn't launch due to changes in tkinter
Lita Cho added the comment: Looks like this method was not doing anything. I removed it and the demo is working just fine. Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file36076/tk_menubar_fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22061 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22061] turtledemo doesn't launch due to changes in tkinter
Serhiy Storchaka added the comment: Indeed, unlike to other removed methods which raised an exception, removing this doing nothing method can break existing code. We should restore it and add deprecation warning. Of course the use of obsolete method should be removed from turtledemo. -- components: +Tkinter stage: - patch review type: crash - behavior Added file: http://bugs.python.org/file36083/tkinter_restore_empty_methods.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22061 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com