From 679290d810e862235103dfec2c8ff153f4a5c0e4 Mon Sep 17 00:00:00 2001 From: Randall Nagy Date: Thu, 19 Sep 2024 08:34:20 -0400 Subject: [PATCH] Module Fix'n --- SqltDAO/CodeGen01/OrderClass.py | 2 +- SqltDAO/DaoTest01/GenNasdaq.py | 2 +- SqltDAO/DaoTest01/tc001_gen.py | 2 +- SqltDAO/GenGUI/Data2Code.py | 2 +- SqltDAO/GenGUI/DataAI.py | 2 +- SqltDAO/GenGUI/DataPreferences.py | 2 +- SqltDAO/GenGUI/TableDef.py | 2 +- SqltDAO/SchemaDef/Factory.py | 6 +++--- SqltDAO/main.py | 8 ++++---- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/SqltDAO/CodeGen01/OrderClass.py b/SqltDAO/CodeGen01/OrderClass.py index 3083957..9e129c5 100644 --- a/SqltDAO/CodeGen01/OrderClass.py +++ b/SqltDAO/CodeGen01/OrderClass.py @@ -6,7 +6,7 @@ sys.path.insert(1, os.path.join(sys.path[0], '../..')) from collections import OrderedDict -from SqltDAO.GenGui.DataPreferences import Dp1 as DataPreferences, Preferences +from SqltDAO.GenGUI.DataPreferences import Dp1 as DataPreferences, Preferences from SqltDAO.CodeGen01.Normalizers import Norm class OrderClass: diff --git a/SqltDAO/DaoTest01/GenNasdaq.py b/SqltDAO/DaoTest01/GenNasdaq.py index 994514c..32fd935 100644 --- a/SqltDAO/DaoTest01/GenNasdaq.py +++ b/SqltDAO/DaoTest01/GenNasdaq.py @@ -5,7 +5,7 @@ from SqltDAO.CodeGen01.OrderClass import OrderClass from SqltDAO.SchemaDef.OrderDef import OrderDef1 as OrderDef from SqltDAO.CodeGen01.CodeGen import DaoGen -from SqltDAO.GenGui.DataPreferences import Dp1 as DataPreferences +from SqltDAO.GenGUI.DataPreferences import Dp1 as DataPreferences if __name__ == "__main__": data_file = "../DaoTest01/nasdaqlisted.txt" diff --git a/SqltDAO/DaoTest01/tc001_gen.py b/SqltDAO/DaoTest01/tc001_gen.py index bf9e193..557ac8e 100644 --- a/SqltDAO/DaoTest01/tc001_gen.py +++ b/SqltDAO/DaoTest01/tc001_gen.py @@ -4,7 +4,7 @@ from SqltDAO.CodeGen01.OrderClass import OrderClass from SqltDAO.CodeGen01.CodeGen import DaoGen -from SqltDAO.GenGui.DataPreferences import Dp1 as DataPreferences +from SqltDAO.GenGUI.DataPreferences import Dp1 as DataPreferences test = DaoGen() diff --git a/SqltDAO/GenGUI/Data2Code.py b/SqltDAO/GenGUI/Data2Code.py index 7ad2d13..8766fcb 100644 --- a/SqltDAO/GenGUI/Data2Code.py +++ b/SqltDAO/GenGUI/Data2Code.py @@ -19,7 +19,7 @@ from SqltDAO.SchemaDef.OrderDef import OrderDef1 as OrderDef from SqltDAO.CodeGen01.SqlSyntax import SqliteCrud from SqltDAO.CodeGen01.CodeGen import DaoGen -from SqltDAO.GenGui.DataPreferences import Dp1 as DataPreferences +from SqltDAO.GenGUI.DataPreferences import Dp1 as DataPreferences from collections import OrderedDict diff --git a/SqltDAO/GenGUI/DataAI.py b/SqltDAO/GenGUI/DataAI.py index f1ea9cb..1ef227f 100644 --- a/SqltDAO/GenGUI/DataAI.py +++ b/SqltDAO/GenGUI/DataAI.py @@ -19,7 +19,7 @@ from SqltDAO.SchemaDef.OrderDef import OrderDef1 as OrderDef from SqltDAO.CodeGen01.SqlSyntax import SqliteCrud from SqltDAO.CodeGen01.CodeGen import DaoGen -from SqltDAO.GenGui.DataPreferences import Dp1 as DataPreferences +from SqltDAO.GenGUI.DataPreferences import Dp1 as DataPreferences from SqltDAO.SchemaDef.Factory import Factory1 from collections import OrderedDict diff --git a/SqltDAO/GenGUI/DataPreferences.py b/SqltDAO/GenGUI/DataPreferences.py index a4d4e31..ff040c4 100644 --- a/SqltDAO/GenGUI/DataPreferences.py +++ b/SqltDAO/GenGUI/DataPreferences.py @@ -17,7 +17,7 @@ from collections import OrderedDict -from SqltDAO.GenGui.StandardEntry import LabelEntryAction +from SqltDAO.GenGUI.StandardEntry import LabelEntryAction class Preferences: ''' Opportunity to create an official class to manage those diff --git a/SqltDAO/GenGUI/TableDef.py b/SqltDAO/GenGUI/TableDef.py index 29ca4c4..87f5d0c 100644 --- a/SqltDAO/GenGUI/TableDef.py +++ b/SqltDAO/GenGUI/TableDef.py @@ -13,7 +13,7 @@ from tkinter import * from tkinter import messagebox -from SqltDAO.GenGui.StandardEntry import LabelEntry +from SqltDAO.GenGUI.StandardEntry import LabelEntry from SqltDAO.SchemaDef.Table import TableDef as TableDef1 from collections import OrderedDict diff --git a/SqltDAO/SchemaDef/Factory.py b/SqltDAO/SchemaDef/Factory.py index 73a146b..e8b9c11 100644 --- a/SqltDAO/SchemaDef/Factory.py +++ b/SqltDAO/SchemaDef/Factory.py @@ -68,7 +68,7 @@ def Create(order_class, detect): @staticmethod def Extract(order_def, pref): - from SqltDAO.GenGui.DataPreferences import Preferences + from SqltDAO.GenGUI.DataPreferences import Preferences ''' Extract an OrderClass from an OrderDef. Raise an exception on error.''' if isinstance(order_def, OrderDef) is False: raise TypeError("Error: Instance of OrderClass is required.") @@ -128,7 +128,7 @@ def SaveFile(pref, order_def, overwrite=False): ''' Will always STORE an instance into a project_name, if accessable. True / False returned. ''' - from SqltDAO.GenGui.DataPreferences import Preferences + from SqltDAO.GenGUI.DataPreferences import Preferences if not isinstance(order_def, OrderDef): return False if isinstance(pref, Preferences) is False: @@ -191,7 +191,7 @@ def SaveAs(fq_file, order_def, overwrite=False): detect = Factory1.Detect(file) print(detect.__dict__) else: - from SqltDAO.GenGui.DataPreferences import Dp1 as DataPreferences + from SqltDAO.GenGUI.DataPreferences import Dp1 as DataPreferences pref = DataPreferences.Load('.') zorder = OrderDef(name=OrderDef.DEFAULT_SCHEMA) zname = zorder.project_name diff --git a/SqltDAO/main.py b/SqltDAO/main.py index b363027..1545383 100644 --- a/SqltDAO/main.py +++ b/SqltDAO/main.py @@ -20,11 +20,11 @@ from SqltDAO.SchemaDef.OrderDef import OrderDef1 as OrderDef from SqltDAO.SchemaDef.Factory import Factory1 -from SqltDAO.GenGui.Data2Code import Data2Code -from SqltDAO.GenGui.StandardEntry import LabelEntry -from SqltDAO.GenGui.TableDef import TableDef as TableDef2 +from SqltDAO.GenGUI.Data2Code import Data2Code +from SqltDAO.GenGUI.StandardEntry import LabelEntry +from SqltDAO.GenGUI.TableDef import TableDef as TableDef2 from SqltDAO.SchemaDef.Table import TableDef as TableDef1 -from SqltDAO.GenGui.DataPreferences import Dp1 as DataPreferences +from SqltDAO.GenGUI.DataPreferences import Dp1 as DataPreferences class Main(Tk):