Skip to content Skip to sidebar Skip to footer
Showing posts with the label Oop

How To Save "self" Return Value To A Variable From Class B: To Class A When Class B Gets That Value Returned By Class C

first of all im pretty new to OOP coding, so sorry for asking stupid questions. I have a problem re… Read more How To Save "self" Return Value To A Variable From Class B: To Class A When Class B Gets That Value Returned By Class C

Python Closure + Oop

I'm trying to do something a bit strange (at least to me) with python closure. Say I have 2 cla… Read more Python Closure + Oop

Creating Attributes Of Attributes - Possible?

I am dealing with monthly data for a number of different data sets (e.g. air temperature, ocean tem… Read more Creating Attributes Of Attributes - Possible?

Subclassing A Class With Private Members

One of the really nice things about python is the simplicity with which you can name variables that… Read more Subclassing A Class With Private Members

Don't Create Object When If Condition Is Not Met In __init__()

I have a class that maps a database object class MyObj: def __init__(self): ...SQL requ… Read more Don't Create Object When If Condition Is Not Met In __init__()

Use Variable In Different Class

I am a beginner in python. I have a problem with using variable in different class. Please help. He… Read more Use Variable In Different Class

Python - Can I Access The Object Who Call Me?

If I have this: class A: def callFunction(self, obj): obj.otherFunction() class B: … Read more Python - Can I Access The Object Who Call Me?

Python Tkinter After Event Oops Implementation

I am very new to Python and even to oops, I want to convert this stackoverflow solution to oops, bu… Read more Python Tkinter After Event Oops Implementation