Closed NZJourneyMan closed 4 years ago
Have done a quick test on my computer - can't reproduce this error.
A quick Google, turns up this: https://mail.python.org/pipermail/tkinter-discuss/2013-December/003538.html from 2013.
It's an issue with the version of tkinter being used by your python 2 installation - which I notice is a newer version than mine...
According to the above link, we can try to build in catching this type of issue, and then converting the object to string manually - not something that I think we should do.
Or, you can try turning off TclObjects
Apparently, adding the following code, before importing appJar, might help:
import Tkinter
Tkinter.wantobjects = False
It certainly didn't break anything on mine...
That worked, thanks!
According to the above link, we can try to build in catching this type of issue, and then converting the object to string manually - not something that I think we should do.
Perhaps consider adding Tkinter.wantobjects = False
in the init part of the library when you decide to load Tkinter instead of tkinter?
It's not a bad idea, I just worry about breaking it for someone else...
Maybe it could be a flag, so people can opt to enable it, if they're having issues - I could look to catch that kind of error and report how to avoid it...
True, some may be manipulating the Tkinter objects directly, so it would make sense to not change the default behaviour. If you could make an override argument in the constructor that would work nicely.
I like the idea of catching the exception and giving a useful message. Unheard of!
Mark Wilson
On Sat, 16 Mar 2019 at 08:34, Richard Jarvis notifications@github.com wrote:
It's not a bad idea, I just worry about breaking it for someone else...
Maybe it could be a flag, so people can opt to enable it, if they're having issues - I could look to catch that kind of error and report how to avoid it...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jarvisteach/appJar/issues/571#issuecomment-473511796, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_oKqYfRZidO3sf1un-sJCGnbByd2ATks5vXKysgaJpZM4bsCkL .
Bug Report
Context
I'm trying to port a small script I wrote in python3 to python2 and I'm running into issues with
.setLabelSticky()
Expected Behaviour
.setLabelSticky()
should not cause the app to crashActual Behaviour
Python3 works fine, python2 crashes
Any error messages produced by appJar
Sample code, demonstrating the issue
What steps are needed to reproduce the bug
Run the code
Version Information