wxglade derived gui classes that call other gui classes

Graeme Glenn <[email protected]> Mon, 1 Aug 2022 14:03:16 +1000
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hi,

This might not be so easy to explain.

A wxglade generated gui is contained in subfolder gui which can easily
be referenced from an __init__.py file contained in the directory.

  * gui directory __init__.py
    from .AddressTab import AddressTab
    from .ArtPanel import ArtPanel
    from .ArtworkTab import ArtworkTab
    from .BackOfficeTab import BackOfficeTab
    from .CardImportTab import CardImportTab
    from .Edge import edge
    from .el_frame import el_frame
    from .JobimportTab import JobimportTab
    from .ProductionTab import ProductionTab

But for example:

  * el_frame also imports the following:
    from AddressTab import AddressTab
    from ArtworkTab import ArtworkTab
    from BackOfficeTab import BackOfficeTab
    from CardImportTab import CardImportTab
    from JobimportTab import JobimportTab
    from ProductionTab import ProductionTab

and ArtworkTab also imports:

  * from ArtPanel import ArtPanel

SO nominally the top application classes and and the overriding gui
classes would look like:

  * Application files and overriding classes:
    Address.py -> Address(AddressTab)
    Art.py -> Art(ArtPanel)
    Artwork -> Artwork(ArtworkTab)
    Backoffice -> Backoffice(BackOfficeTab)
    CardImport -> CardImport(CardImportTab)
    EdgeLoyalty -> EdgeLoyalty(edge)
    Elframe -> El(el_frame)
    JobImport -> JobImport(JobImportTab)
    Production -> Production(ProductionTab)

But this does not work as:

  * ELframe needs to import:
    from Address import Address
    from Artwork import Artwork
    from BackOffice import BackOffice
    from CardImport import CardImport
    from Jobimport import Jobimport
    from Production import Production

rather than the classes contained in the gui directory.

It's worse than this, because Artwork needs to import Art as well.

Basicly the _init__ functions inĀ  Elframe and Artwork need to be copied
and rewitten which sort of defeats the purpose of overriding the class.

Am I looking at this correctly or is my thinking fouled up?

Any suggestions / comments?

Kind Regards

-- 
InfoComm Signature

*Graeme G. Glenn*

*PEng. Dip Electronics BEng Comm Dip Theo*

InfoComm Engineering
www.coolice.com.au <http://www.coolice.com.au/catalog/>
	

*Ph: (03) 9789 3547
Mob: 0412 727 224*

*Fax: (03) 9011 6180*

*Email: [email protected]*

	Young Living <http://lightingtheway.com.au>
lightingtheway.com.au <http://lightingtheway.com.au>
*Change your life
Wellness not Sickness* 	Facebook
<https://www.facebook.com/lightingthewaytoessentialoils/>

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general