示例#1
0
 def set_url(self, value):
     if value:
         request = NSURLRequest.requestWithURL(
             NSURL.URLWithString(self.interface.url))
         self.native.mainFrame.loadRequest(request)
示例#2
0
 def set_content(self, root_url, content):
     self.native.mainFrame.loadHTMLString_baseURL_(
         content, NSURL.URLWithString(root_url))
示例#3
0
 def set_content(self, root_url, content):
     self.native.loadHTMLString(content, baseURL=NSURL.URLWithString(root_url))