New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append new items to AutoEntry Wedgets #366

Closed
mohamed-okasha opened this Issue Feb 5, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@mohamed-okasha
Copy link

mohamed-okasha commented Feb 5, 2018

When I trying to execute this line

app.appendAutoEntry('titile',[list of items])

This error appears:

File "/home/mohamed/PycharmProjects/transfer_tool/venv/lib/python2.7/site-packages/appJar/appjar.py", line 8601, in appendAutoEntry
    entry.addWords(value)
AttributeError: Entry instance has no attribute 'addWords'

I used Python 2.7

@jarvisteach

This comment has been minimized.

Copy link
Owner

jarvisteach commented Feb 5, 2018

I think that's because you're calling the function on an entry that's not an AutoEntry.

You have to first create an AutoEntry:

from appJar import gui 

with gui("AutoEntry", "400x400") as app:
    app.addAutoEntry("e", ["a", "aa", "aab", "cc", "d", "e", "f", "g"])
    app.appendAutoEntry("e", ["zzz"])

However, there should be a more friendly error message, I'll change that!

jarvisteach added a commit that referenced this issue Feb 11, 2018

New log level, stop property, error checking on autoEntries, grid opt…
…ions

#367 - new TRACE log level, for appjar messages
#340 - stop function & parameter to constructor
#266 ability to select row/column - not finished, and has issues if new
rows/columns added
#366 - error messages when calling autoEntry functions on
non-autoEntries

@jarvisteach jarvisteach added this to the 1.0 milestone Feb 11, 2018

@jarvisteach

This comment has been minimized.

Copy link
Owner

jarvisteach commented Feb 11, 2018

Error messages now updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment