Bugs item #1987372, was opened at 2008-06-07 13:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1987372...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Bernhard Mayr (falk_steinhauer) Assigned to: Nobody/Anonymous (nobody) Summary: Crash within gui.py and corresponding bugfix
Initial Comment: Line 418 of gui.py ( root = Tk() ) needs to be moved to line 24.
Otherwise line 255 ( menubar = Menu(root) ) will leed to a crash if gui.py is used in editarticle.py or replace.py.
TRACEBACK of replace.py crash when chosing [e]dit:
Benutzer:FalkBot/Spielwiese <<<
- *<font color=darkorange>[[Ork]]</font> + *<font color=darkorange>[[Schwert]]</font>
Do you want to accept these changes? ([y]es, [N]o, [e]dit, open in [b]rowser, [a ]ll, [q]uit) e
Traceback (most recent call last): File "C:\Python\pywikipedia\replace.py", line 694, in <module> main() File "C:\Python\pywikipedia\replace.py", line 690, in main bot.run() File "C:\Python\pywikipedia\replace.py", line 390, in run as_edited = editor.edit(original_text) File "C:\Python\pywikipedia\editarticle.py", line 119, in edit return self.restoreLinebreaks(wikipedia.ui.editText(text, jumpIndex = jumpIn dex, highlight = highlight)) File "C:\Python\pywikipedia\userinterfaces\terminal_interface.py", line 281, i n editText editor = gui.EditBoxWindow() File "C:\Python\pywikipedia\gui.py", line 255, in __init__ menubar = Menu(root) NameError: global name 'root' is not defined
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1987372...
pywikipedia-l@lists.wikimedia.org