MCPcopy Create free account
hub / github.com/Image-Py/imagepy / __init__

Method __init__

imagepy/ui/widgets/normal.py:368–377  ·  view source on GitHub ↗
(self, parent, title)

Source from the content-addressed store, hash-verified

366
367class Check(wx.Panel):
368 def __init__(self, parent, title):
369 wx.Panel.__init__(self, parent)
370 sizer = wx.BoxSizer(wx.VERTICAL)
371 check = wx.CheckBox(self, -1, title)
372 sizer.Add( check, 0, wx.ALL, 5 )
373 self.SetSizer(sizer)
374
375 self.SetValue = check.SetValue
376 self.GetValue = check.GetValue
377 check.Bind(wx.EVT_CHECKBOX, self.on_check)
378
379 def on_check(self, event):self.f(event)
380 def Bind(self, z, f): self.f = f

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
BindMethod · 0.45

Tested by

no test coverage detected