Beispiel #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()
 def view(self,parent,title):
     f = ViewTextFrame.create(parent)            
     f.SetTitle(title)
     f.set_text(open(self.pathname).read())       
     f.Show()
 def view(self, parent, title):
     f = ViewTextFrame.create(parent)
     f.SetTitle(title)
     f.set_text(open(self.pathname).read())
     f.Show()