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

Method show

imagepy/core/engine/simple.py:36–45  ·  view source on GitHub ↗
(self, temp=ParaDialog)

Source from the content-addressed store, hash-verified

34 def preview(self, ips, para):pass
35
36 def show(self, temp=ParaDialog):
37 if self.view==None:return True
38 self.dialog = temp(IPy.get_window(), self.title)
39 self.dialog.init_view(self.view, self.para, 'preview' in self.note, modal=self.modal)
40 self.dialog.on_help = lambda : IPy.show_md(self.title, DocumentManager.get(self.title))
41 self.dialog.set_handle(lambda x:self.preview(self.ips, self.para) is self.ips.update())
42 if self.modal: return self.dialog.ShowModal() == wx.ID_OK
43 self.dialog.on_ok = lambda : self.ok(self.ips)
44 self.dialog.on_cancel = lambda : self.cancel(self.ips) is self.ips.update()
45 self.dialog.Show()
46
47 def run(self, ips, imgs, para = None):pass
48

Callers 1

startMethod · 0.95

Calls 7

previewMethod · 0.95
okMethod · 0.95
cancelMethod · 0.95
init_viewMethod · 0.80
getMethod · 0.45
set_handleMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected