Example #1
0
 def _show_img(self, img, title=None):
     cframe = CanvasFrame(self, True)
     canvas = cframe.canvas
     if not isinstance(img, Image): 
         img = Image(img, title)
     App.show_img(self, img, img.title)
     cframe.Bind(wx.EVT_ACTIVATE, self.on_active_img)
     cframe.Bind(wx.EVT_CLOSE, self.on_close_img)
     canvas.set_img(img)
     cframe.SetIcon(self.GetIcon())
     cframe.Show()
Example #2
0
 def _show_img(self, img, title=None):
     cframe = CanvasFrame(self, True)
     canvas = cframe.canvas
     if not title is None:
         canvas.set_imgs(img)
         canvas.image.name = title
     else: canvas.set_img(img)
     cframe.Bind(wx.EVT_ACTIVATE, self.on_new_img)
     cframe.Bind(wx.EVT_CLOSE, self.on_close_img)
     cframe.SetIcon(self.GetIcon())
     cframe.Show()