4 class PrMenuBar(PrThing
, wx
.MenuBar
):
5 def __init__(self
, filename
):
6 res
= wx
.xrc
.XmlResource_Get()
8 self
.__dict
__["menuBar"] = res
.LoadMenuBar("menubar")
12 def __getattr__(self
, name
):
13 if (name
in dir(PrThing
) or "menuBar" not in self
.__dict
__):
14 return self
.__dict
__[name
]
16 return getattr(self
.__dict
__["menuBar"], name
)
18 def __setattr__(self
, name
, value
):
19 if (name
in dir(PrThing
) or "menuBar" not in self
.__dict
__):
20 self
.__dict
__[name
] = value
22 setattr(self
.__dict
__["menuBar"], name
, value
)