Python Forum
[PyQt] Managing variables accross a multiple module GUI
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Managing variables accross a multiple module GUI
#4
Thank you both for your answers.

I'm trying to clean up a program made by a colleague and it's a collection of everything you shouldn't do in programming (think global variables everywhere, while loops, redundant code, etc). I've shrunk the code for calculations by a good 1/3, but the UI really needs to be sorted out.
Right now every "important" variable is accessed like a global from just about anywhere in the code. I think referring to the parent might should the trick to simplify variable access between the modules however I'll have to reorganise everything from scratch first.

I'll have a look at Alfalfa's code as soon as I have time, to see how everything fits together and hopefully get some insight on how to reorganise this mess! LOL
Reply


Messages In This Thread
RE: Managing variables accross a multiple module GUI - by Oolongtea - Jun-28-2019, 11:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question [Tkinter] Defining a self made module's function to interact with the main .py variables? Gilush 9 4,479 Jun-08-2020, 09:08 AM
Last Post: Gilush

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020