

def __init__(self, parent, id=wx.ID_ANY):
    wx.Panel.__init__(self, parent, id)
    sizer = wx.BoxSizer(wx.HORIZONTAL)
    if _pdf_available:
        self.pdf = PDFWindow(self, style=wx.SUNKEN_BORDER)
        sizer.Add(self.pdf, 1, flag=wx.EXPAND)
        self.tmpdir = tempfile.mkdtemp()
        self.Bind(wx.EVT_CLOSE, self.OnClose)
    else:
        sizer.Add(wx.StaticText(self, (- 1), 'PDF viewer not available'))
    self.SetSizer(sizer)
    sizer.Fit()

dataset/ETHPy150Open manahl/mdf/mdf/viewer/panels/dagviewer.py DAGViewer.__init__/VarMisuse@134/160 `self`->`sizer`