I have an inkling to write some FreeCAD addons, and happened to come across this one to start. I notice that the entire implementation is in one 6281 line file.
I didn't want to start making PRs willy-nilly without first checking in with what I have in mind.
- Put class definitions into dedicated file(s)
- put setup variables at top of
pieMenuStart in something like bootstrap.py
- move function definitions to dedicated file(s)
- where relevant, move function defs into class methods
- investigate code groups and organise into helpers
- get rid of globals where possible (starting with the easy ones)
settingsTabLayout.insertWidget(0, globalSettingsGroup)
# settingsTabLayout.insertWidget(1, spinBoxGroup)
settingsTabLayout.insertWidget(1, experimentalGroup)
settingsTabLayout.insertWidget(2, exportGroup)
settingsTabLayout.addStretch(1)
settingsTabLayout.insertSpacing(3, 42)
settingsTabLayout.insertLayout(4, layoutGlobalShortcut)
would become something like
initTabLayout(tabLayoutSpec)
Let me know if you have any requestes about how you want the PRs broight in.
I have an inkling to write some FreeCAD addons, and happened to come across this one to start. I notice that the entire implementation is in one 6281 line file.
I didn't want to start making PRs willy-nilly without first checking in with what I have in mind.
pieMenuStartin something likebootstrap.pywould become something like
Let me know if you have any requestes about how you want the PRs broight in.