def web_weather(self, sender):
        '''
    Kill sceneview to cut memory overhead...webview
    then loads much faster. Note too that when
    webview is loaded via .present() without
    killing the sceneview, the sceneview will lock
    up after closing the webview window.
    '''
        self.remove_subview(self.scene_view)
        wv = ui.WebView()
        #w, h = ui.get_screen_size()
        #wv.frame = (0, 20, w, h / 1.2)
        wv.frame = self.bounds
        wv.border_color = 'grey'
        wv.border_width = 3
        wv.scales_page_to_fit = True
        url = wa.get_web_weather(json_w)
        wv.load_url(url)

        self.closebutton(wv)
        self.add_subview(wv)
 def web_weather(self, sender):
   wa.get_web_weather(json_w)
   self.close()
Beispiel #3
0
 def web_weather(self, sender):
     wa.get_web_weather(json_w)
     self.close()