Beispiel #1
0
 def __init__(self, master=None):
     """Initializes the main frame"""
     tk.Frame.__init__(self, master)
     self.client = Client(factory=gophic.ResourceFactory(
         lambda c: TextResource(c) if c.location.type in "0" else None,
         lambda c: DirectoryResource(c)
         if c.location.type in "17" else None,
         lambda c: WebResource(c)
         if c.location.path.startswith("URL:") else None,
         lambda c: TextResource(c)  # TODO
     ))
     self.pack()