def _show(image, title):
 class UI(tkinter.Label, ):
  def __init__(self, master, im):
   if (im.mode == '1'):
    self.image = BitmapImage(im, foreground='white', master=master)
   else:
    self.image = PhotoImage(im, master=master)
   tkinter.Label.__init__(self, master, image=self.image, bg='black', bd=0)
 if (not tkinter._default_root):
  raise IOError('tkinter not initialized')
 top = tkinter.Toplevel()
 if title:
  top.title(title)
 UI(top, image).pack()

def _show ( image , title ) : class UI ( tkinter . Label , ) : def __init__ ( self , master , im ) : if ( im . mode == '1' ) : self . image = BitmapImage ( im , foreground = 'white' , master = master ) else : self . image = PhotoImage ( im , master = master ) tkinter . Label . __init__ ( self , master , image = self . image , bg = 'black' , bd = 0 ) if ( not tkinter . _default_root ) : raise IOError ( 'tkinter not initialized' ) top = tkinter . Toplevel ( ) if title : top . title ( title ) UI ( top , image ) . pack ( )
helper for the image .