Python Forum
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about classes
#3
(May-18-2017, 12:04 PM)cybercreature Wrote: Hi, I have 2 classes and I want a method which is in the the 2nd class ('class2_method') to be able to access a class variable from the first class. However I need 'class2_method' to be  run from a method in the first class('class1_method').

There must be a problem with your design if you must do that.
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Messages In This Thread
Question about classes - by cybercreature - May-18-2017, 12:04 PM
RE: Question about classes - by Larz60+ - May-18-2017, 04:55 PM
RE: Question about classes - by Ofnuts - May-18-2017, 07:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Classes and Objects - question AI_ML_Neophyte 3 2,935 Dec-11-2018, 01:52 PM
Last Post: wavic
  Using classes? Can I just use classes to structure code? muteboy 5 5,077 Nov-01-2017, 04:20 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

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