pywikibot: Tk FilePage dialog
completed by: Slepice1
mentors: Fabian, John Vandenberg
Pywikibot (PWB) is a Python-based framework to write bots for MediaWiki. See https://www.mediawiki.org/wiki/Manual:Pywikibot for more information. Patches can be submitted via Gerrit (you need a MediaWiki.org account). More documentation on Gerrit can be found at https://www.mediawiki.org/wiki/Manual:Pywikibot/Gerrit. After you have successfully claimed this task in Google Melange please do use the task in Phabricator for communication instead of Google Melange. This allows more PWB developers to be reached! General development questions can be asked on the Pywikibot mailing list at https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l and the #pywikibot IRC channel (see https://www.mediawiki.org/wiki/MediaWiki_on_IRC).
TkInter is the standard Graphical User Interface (GUI) for Python, using Tcl/Tk. More information available https://wiki.python.org/moin/TkInter . Pywikibot has basic GUI support using TkInter, and one bot (flickrripper) has additional Tkinter functionality, that is not part of the Pywikibot library, to display a image.
This task is to migrate the flickrripper Tk functionality into the core library module gui.py. In addition to moving the code, the moved code should use pep8 compliant class and function names, and the setup.py and unittest package dependencies need to be updated (see setup.py and tests/script_tests.py). To complete this task, a unit test needs to be added to the test file "tests/tk_tests.py" to exercise the new gui.py code.
The Phabricator task is https://phabricator.wikimedia.org/T78505 .
Always refer to https://www.mediawiki.org/wiki/Google_Code-in_2014#Instructions_for_GCI_students for general information and phabricator.wikimedia.org for information on specific tasks.