Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6884825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:33:28+00:00 2026-05-27T05:33:28+00:00

On the project I’m currently working on (a GUI for a testing system) I’m

  • 0

On the project I’m currently working on (a GUI for a testing system) I’m required to write base classes for all graphical objects and inherit these objects into the class which utilises the graphical object. The actual working code is then written there. This seems like standard procedure for these sort of GUI related projects.

My question is; with multiple graphical object base files, all inherited by functional modules, which are all executed by a mainframe module which is launched by a Launcher script, are there any recommended layouts for the file system containing these scripts.

I’m basically deciding between:

/mainfolder ---> __init__.py
                 launcher.py
                 /MainPackage ---> __init__.py
                                  Mainframe.py
                                  Subframe_1.py
                                  Subframe_2.py
                                  /Bases ------> __init__.py
                                                 Mainframe_base.py
                                                 Subframe_1_base.py
                                                 Subframe_2_base.py

or :

/mainfolder ---> __init__.py
                 launcher.py
                 /MainPackage ---> __init__.py
                                   /Mainframe    ---> __init__.py
                                                      Mainframe.py
                                                      Mainframe_base.py
                                   /Subframe_1.py --> __init__.py
                                                      Subframe_1.py
                                                      Subframe_1_base.py
                                   /Subframe_2.py --> __init__.py
                                                      Subframe_2.py
                                                      Subframe_2_base.py

Are either of these better than the other? Or is there another, more commonly used form of organising the modules?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:33:29+00:00Added an answer on May 27, 2026 at 5:33 am

    I like to keep things modular, so would go with

    /mainfolder --> __init__.py
                    launcher.py
                    /MainPackage --> __init__.py
                                     /Mainframe  --> __init__.py
                                                     Mainframe.py
                                                     Mainframe_base.py
                                     /Subframe_1 --> __init__.py
                                                     Subframe_1.py
                                                     Subframe_1_base.py
                                     /Subframe_2 --> __init__.py
                                                     Subframe_2.py
                                                     Subframe_2_base.py
    

    if not just 1 .py per frame.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A project I'm working on at the moment involves refactoring a C# Com Object
My project is currently using a svn repository which gains several hundred new revisions
Project I'm working on uses jQuery. I have a series of Ajax calls being
The project I'm working on has a legacy database with lots of information in
The project I am working on requires a whole bunch of queries towards a
Project file here if you want to download: http://files.me.com/knyck2/918odc So I am working on
Project Lombok makes it trivial to implement the boilerplate code in the classes. Is
project type is MVC2. Let say that i have page1. after success it write
A project I am working on only builds with maven-2.2: for earlier versions, the
Our project uses XJC to generate Java classes from an XSD. I'm using JAVA

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.