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

Method show

imagepy/core/engine/free.py:36–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 def load(self):return True
35
36 def show(self):
37 if self.view==None:return True
38 with ParaDialog(WindowsManager.get(), self.title) as dialog:
39 dialog.init_view(self.view, self.para, False, True)
40 doc = self.__doc__ or '### Sorry\nNo document yet!'
41 dialog.on_help = lambda : IPy.show_md(self.title, DocumentManager.get(self.title))
42 return dialog.ShowModal() == wx.ID_OK
43
44 def start(self, para=None, callback=None):
45 if not self.load():return

Callers 1

startMethod · 0.95

Calls 3

ParaDialogClass · 0.85
init_viewMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected