Ejemplo n.º 1
0
def show(input):
    if isinstance(input, ImageFile):
        f = ViewImageFrame.create(None)
        f.set_image(input.pathname)
        f.Show()
    else:
        f = ViewTextFrame.create(None)
        f.set_text(open(input.pathname).read())
        f.Show()
Ejemplo n.º 2
0
 def view(self,parent,title):
     f = ViewTextFrame.create(parent)            
     f.SetTitle(title)
     f.set_text(open(self.pathname).read())       
     f.Show()
Ejemplo n.º 3
0
 def view(self, parent, title):
     f = ViewTextFrame.create(parent)
     f.SetTitle(title)
     f.set_text(open(self.pathname).read())
     f.Show()