diff --git a/dist/Soar-1.3.6.tar.gz b/dist/Soar-1.3.6.tar.gz new file mode 100644 index 0000000..4841170 Binary files /dev/null and b/dist/Soar-1.3.6.tar.gz differ diff --git a/docs/source/conf.py b/docs/source/conf.py index b404333..ea0a9e5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -67,9 +67,9 @@ def __getattr__(cls, name): # built documents. # # The short X.Y version. -version = '1.3.5' +version = '1.3.6' # The full version, including alpha/beta/rc tags. -release = '1.3.5' +release = '1.3.6' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/soar/__init__.py b/soar/__init__.py index 096725a..75581d6 100644 --- a/soar/__init__.py +++ b/soar/__init__.py @@ -15,13 +15,13 @@ # along with this program. If not, see . # # soar/__init__.py -""" Soar (Snakes on a Robot) v1.3.5 +""" Soar (Snakes on a Robot) v1.3.6 An extensible Python framework for both simulating and interacting with robots. Copyright (C) 2017 Andrew Antonitis. Licensed under the LGPLv3. """ -__version__ = '1.3.5' +__version__ = '1.3.6' blerb = 'Soar (Snakes on a Robot) v' + __version__ + ': A Python robotics framework.\n' \ 'https://github.com/arantonitis/soar\n\n' \ 'Copyright (C) 2017 Andrew Antonitis. Licensed under the LGPLv3.' diff --git a/soar/client.py b/soar/client.py index 080ebe0..c643e7e 100644 --- a/soar/client.py +++ b/soar/client.py @@ -261,7 +261,10 @@ class WrappedPlotWindow(PlotWindow): if gui: def __init__(self, title='Plotting Window', visible=True): # Wrap the class init so that it runs in the Tk mainloop - tkinter_execute(return_exceptions(PlotWindow.__init__))(self, title, visible=visible) + if current_thread() != main_thread(): # If not on the main thread, force it + tkinter_execute(return_exceptions(PlotWindow.__init__))(self, title, visible=visible) + else: # If we're already on the main thread, do a normal init + PlotWindow.__init__(self, title, visible=visible) # Attach the window to the UI, and add it to the list of plots gui.attach_window(self) plots.append(self) diff --git a/soar/update.py b/soar/update.py index a8577ef..76e09ba 100644 --- a/soar/update.py +++ b/soar/update.py @@ -36,6 +36,8 @@ def version_parse(x): # Parse version increment strings into integers if need_update: if pypi_version[3] != inf: pypi_version[3] = 'dev' + str(pypi_version[3]) + else: + pypi_version = pypi_version[:-1] # Slice off the irrelevant infinite dev version version_string = '.'.join([str(x) for x in pypi_version]) return 'A newer version of Soar is available: v' + version_string + '\nPlease update your installation.' else: