-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial refactor and tests of the text_box class (and derived classes)
Removes Python 2.7 compatibility! (re)add the mouse click behaviour that the refactor had removed (re) add docstrings for the text_box and derived methods (used by sphinx) Move Al's test_easygui.py integration tests to the 'tests' folder for consistency use 1x README.rst instead of (duplicate) .txt and .md README files tweak conda meta.yaml so that bld.bat and build.sh aren't needed rename 'test_cases' -> 'demos' change mose_click_handlers -> MouseClickHandler class remove test_travis.py since we now have enough *real* tests, and Travis is working nicely remove duplicate 'parse_hotkey' method remove 'developer information' remove unused methods (exception_format, uniquify_list_of_strings, getFileDialogTitle, to_string) remove unused constant definitions remove tk 8.0+ warning since it looks like it is now bundled for all 'current' python (v3.7+) Tests will live in the 'tests' directory Demos will live in the 'demos' folder Remove some 'about' files to de-clutter the project. Aim: have more functional files, and less 'print this' type files everywhere. In order to do this, move the 'version' information to __init__.py * use it from the demo boxes *and* from setup.py Moving things from easygui.boxes.__init__ to easygui.boxes.utils ... in preparation of getting rid of boxes directory entirely. I want to keep the easygui.__init__ for import control, and move utilites to 'utils' add more interesting things to the button_box.py default parameter values
- Loading branch information
Showing
79 changed files
with
5,383 additions
and
3,980 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include README.md | ||
include README.rst |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
|
||
from easygui import buttonbox | ||
|
||
|
||
def demo_buttonbox_1(): | ||
print("hello from the demo") | ||
value = buttonbox( | ||
title="First demo", | ||
msg="bonjour", | ||
choices=["Button[1]", "Button[2]", "Button[3]"], | ||
default_choice="Button[2]") | ||
print("Return: {}".format(value)) | ||
|
||
|
||
def demo_buttonbox_2(): | ||
package_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) ;# My parent's directory | ||
images = list() | ||
images.append(os.path.join(package_dir, "python_and_check_logo.gif")) | ||
images.append(os.path.join(package_dir, "zzzzz.gif")) | ||
images.append(os.path.join(package_dir, "python_and_check_logo.png")) | ||
images = [images, images, images, images, ] | ||
value = buttonbox( | ||
title="Second demo", | ||
msg="Now is a good time to press buttons and show images", | ||
choices=['ok', 'cancel'], | ||
images=images) | ||
print("Return: {}".format(value)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.