jarvisteach / appJar

Simple Tkinter GUIs in Python
http://appJar.info
Other
613 stars 68 forks source link

Issue with AjRectangle in v0.93 #455

Closed kamilm closed 6 years ago

kamilm commented 6 years ago

I can't load this latest version, v0.93, because I cannot import AjRectangle. This is strange, as I have no problem with v0.92. Is anyone else experiencing this?

libs\appJar__init__.py", line 5, in from appJar.appjar import AjRectangle, AjPoint ImportError: cannot import name 'AjRectangle'

jarvisteach commented 6 years ago

In the latest version (0.93) AjRectangle has been added to the global namespace.

So, now you can import it directly:

from appJar import gui, AjRectangle, AjPoint
kamilm commented 6 years ago

Sorry, maybe I wasn't clear. I can't load v0.93 because AjRectangle is holding it back. It's being loaded in AppJar/init.py and the software gets held up at that import.

jarvisteach commented 6 years ago

What platform/version of python are you using, and how have you installed appJar?

kamilm commented 6 years ago

@jarvisteach I am using Win10 with Python installed via the Anaconda Distribution.

I've sort of narrowed down my problem to my project structure:

./libs
./libs/__init__.py
./libs/appJar/
./libs/appJar/__init__.py
./libs/appJar/appjar.py
./libs/appJar/... all others
./main.py

I launch main.py

in main.py i have:

from libs.appJar import gui
with app as gui():
    app.addLabel('Show Me')

this doesn't work.

When I shift my project so that it all lives inside of ./libs/ it works.

What makes all this a bit puzzling is that it worked just fine in the previous version, 0.92.

jarvisteach commented 6 years ago

Not sure what the issue was - closing.