Python Forum
Class object instance. Link instance attribute to class. Can it be done easier.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class object instance. Link instance attribute to class. Can it be done easier.
#8
The read_only/private way. Will not let methods and properties to be use.
In these method and properties update would need to be called.
I have pygame.Rect like object. That has 7 methods,
4 attributes, and 18 properties that can change data.
I like to have access to these method and properties.
99 percent of computer problems exists between chair and keyboard.
Reply


Messages In This Thread
RE: Class object instance. Link instance attribute to class. Can it be done easier. - by Windspar - Dec-03-2018, 11:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python inner classes inheritance from parent class Abedin 8 411 2 hours ago
Last Post: Gribouillis
  Accessing method attributes of python class Abedin 6 836 Apr-14-2025, 07:02 AM
Last Post: buran
  Python class members based on a type value voidtrance 7 1,230 Apr-11-2025, 10:10 PM
Last Post: deanhystad
  Create a new subclass in a Python extension based on an existing class voidtrance 6 1,371 Mar-25-2025, 06:37 PM
Last Post: voidtrance
  type object 'man' has no attribute 'centerX' Tempo 7 842 Mar-07-2025, 03:47 AM
Last Post: deanhystad
  printing/out put issue with class arabuamir 3 979 Aug-25-2024, 09:29 AM
Last Post: arabuamir
  Class test : good way to split methods into several files paul18fr 5 3,724 Jul-17-2024, 11:12 AM
Last Post: felixandrea
Bug Copying methods to effect the new owner instead of the old instance Daniel285 2 986 Jun-03-2024, 07:58 AM
Last Post: Gribouillis
  [split] Class and methods ebn852_pan 15 3,326 May-23-2024, 11:57 PM
Last Post: ebn852_pan
  [SOLVED] [listbox] Feed it with dict passed to class? Winfried 3 1,307 May-13-2024, 05:57 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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