Handle the EINTR error when doing a waitpid() in wvmagicloopback.
[wvapps.git] / photoreider / prmenubar.py
blob8d186ee9486a038f143aec6b3de0478ac8cad6ab
1 import wx, wx.xrc
2 from prthing import *
4 class PrMenuBar(PrThing, wx.MenuBar):
5 def __init__(self, filename):
6 res = wx.xrc.XmlResource_Get()
7 res.Load(filename)
8 self.__dict__["menuBar"] = res.LoadMenuBar("menubar")
9 PrThing.__init__(self)
12 def __getattr__(self, name):
13 if (name in dir(PrThing) or "menuBar" not in self.__dict__):
14 return self.__dict__[name]
15 else:
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
21 else:
22 setattr(self.__dict__["menuBar"], name, value)