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

Method __init__

imagepy/ui/canvasframe.py:123–135  ·  view source on GitHub ↗
(self, parent=None)

Source from the content-addressed store, hash-verified

121 """CanvasFrame: derived from the wx.core.Frame"""
122 ## TODO: Main frame ???
123 def __init__(self, parent=None):
124 wx.Frame.__init__ ( self, parent, id = wx.ID_ANY,
125 title = wx.EmptyString,
126 pos = wx.DefaultPosition,
127 size = wx.Size( -1,-1 ),
128 style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
129 self.canvaspanel = CanvasPanel(self)
130 logopath = os.path.join(root_dir, 'data/logo.ico')
131 self.SetIcon(wx.Icon(logopath, wx.BITMAP_TYPE_ICO))
132 self.Bind(wx.EVT_ACTIVATE, self.on_valid)
133 self.SetAcceleratorTable(IPy.curapp.shortcut)
134 self.Bind(wx.EVT_CLOSE, self.on_close)
135 self.canvaspanel.set_handler(self.set_title)
136
137 def set_ips(self, ips):
138 self.canvaspanel.set_ips(ips)

Callers

nothing calls this directly

Calls 4

CanvasPanelClass · 0.85
__init__Method · 0.45
BindMethod · 0.45
set_handlerMethod · 0.45

Tested by

no test coverage detected