In .../CthuluPackage In CthuluCore.py, I have:
class Dice(object):
@staticmethod
def __RollSkillMenu():
bonus=int(input("Bonus>"))
penalty=int(input("Penalty>"))
return Dice.RollSkill(bonus-penalty)
In CthuluSkills.py, I have
from CthuluPackage.CthuluCore import *
import inspect
class SkillCheckResult(object):
def __init__(self,targetSkill):
self.TargetSkill=targetSkill
print(Dice)
self.Roll=Dice.__RollSkillMenu()
When I attempt to create a SkillCheckResult, I get the message:
AttributeError: type object 'Dice' has no attribute '_SkillCheckResult__RollSkillMenu'
Which really confuses me, because as far as I know I'm not trying to call anything named Dice.SkillCheckResult_RollSkillMenu,I'm only trying to call Dice.RollSkillMenu. Why is python prepending this to my method call?
Dice.__RollSkillMenu()?