Python Forum
How to share a variable between two Python classes?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to share a variable between two Python classes?
#2
If I have read your post correctly you want the user to have access to "play" only if they have read the TOS (Terms Of Service), or your privacy statement and that it would know that they have agreed to the terms... is that correct?

To code that, it might be worth simply making the Privacy or TOS page as Top layer and add a check box in the coding and code the action accordingly.

Example... If the value of the check box is unchecked then the value of the variable for the check box is "0" whereas the button has no command to jump to code and remains null.
If the check box is checked the value then becomes "1" and the command to jump and execute the def to start the game executes.

This would seem to be the easiest way to accomplish what you are after... if I have understand your query correctly.
"Often stumped... But never defeated."
Reply


Messages In This Thread
RE: How to share a variable between two Python classes? - by DT2000 - Nov-27-2019, 12:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can import variable beteen classes in same module johnjh 1 1,960 Apr-19-2020, 09:41 PM
Last Post: deanhystad
  Scope of variable when using two classes AyJay 2 2,175 Jan-23-2020, 10:09 AM
Last Post: AyJay

Forum Jump:

User Panel Messages

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