From 87177b61bcd6e11fc3d95c580db4064a3b107256 Mon Sep 17 00:00:00 2001 From: Nathaniel Schmidt Date: Wed, 10 Jun 2020 18:41:51 +1000 Subject: [PATCH] Maintaining compatibility between py2 & 3. One still cannot build / compile to binary with py2exe but lbc with the FruitBasket GUI program runs from source. Also still exits normally despite the attribute error regarding the allegedly non-existent App.exit() attribute, so will have to trap and fix this issue later. --- lbc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lbc.py b/lbc.py index b149307..d8304e8 100644 --- a/lbc.py +++ b/lbc.py @@ -9,7 +9,10 @@ import ctypes, os, sys import win32api import wx -from odict import OrderedDict +try: + from odict import OrderedDict +except: + from odict import odict as OrderedDict DEFAULT_PARENT = -1 DEFAULT_STYLE = 0