#๐Ÿ”’ Class Accessing Methods in my application

15 messages ยท Page 1 of 1 (latest)

jagged niche
#

Hi everyone, I'm trying to work on a PyQt Application that closes applications if a user is focused on them for too long. Right now i have 4 main classes: Settings, GUI, overlay and backend. Settings is just a get/set class. I would like some advice on the order of accessing

pastel caveBOT
#

@jagged niche

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

jagged niche
#

So basically GUI class is where the main application starts up. You can control some settings (which gets reflected in the settings class), and then 'boot' the overlay up.

#

The overlay periodically runs some functions in backend class to get the current screen applications and whatnot

#

now here is where i am a bit confused

#

assume i have a boolean setting, like a checkbox right

#

should it be like only GUI has access to settings, and then it just calls backend functions

#

or should backend functions have a check by accessing settings

#

if needed i'll post my code

covert flax
jagged niche
#

hm so like GUI changes settings, backends does checks based on settings and overlay just needs to call backend functions?

#

that sounds better but means i got to move so much around ;-;

pastel caveBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.