久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='1v6h6'></bdo><ul id='1v6h6'></ul>
  • <tfoot id='1v6h6'></tfoot>
  • <i id='1v6h6'><tr id='1v6h6'><dt id='1v6h6'><q id='1v6h6'><span id='1v6h6'><b id='1v6h6'><form id='1v6h6'><ins id='1v6h6'></ins><ul id='1v6h6'></ul><sub id='1v6h6'></sub></form><legend id='1v6h6'></legend><bdo id='1v6h6'><pre id='1v6h6'><center id='1v6h6'></center></pre></bdo></b><th id='1v6h6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1v6h6'><tfoot id='1v6h6'></tfoot><dl id='1v6h6'><fieldset id='1v6h6'></fieldset></dl></div>

        <small id='1v6h6'></small><noframes id='1v6h6'>

        <legend id='1v6h6'><style id='1v6h6'><dir id='1v6h6'><q id='1v6h6'></q></dir></style></legend>

        Python - 在應用程序中顯示 Web 瀏覽器/iframe

        Python - Showing a web browser/iframe right into the app(Python - 在應用程序中顯示 Web 瀏覽器/iframe)

        <small id='286ye'></small><noframes id='286ye'>

          • <tfoot id='286ye'></tfoot>
          • <i id='286ye'><tr id='286ye'><dt id='286ye'><q id='286ye'><span id='286ye'><b id='286ye'><form id='286ye'><ins id='286ye'></ins><ul id='286ye'></ul><sub id='286ye'></sub></form><legend id='286ye'></legend><bdo id='286ye'><pre id='286ye'><center id='286ye'></center></pre></bdo></b><th id='286ye'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='286ye'><tfoot id='286ye'></tfoot><dl id='286ye'><fieldset id='286ye'></fieldset></dl></div>

                <bdo id='286ye'></bdo><ul id='286ye'></ul>

                    <tbody id='286ye'></tbody>
                  <legend id='286ye'><style id='286ye'><dir id='286ye'><q id='286ye'></q></dir></style></legend>
                  本文介紹了Python - 在應用程序中顯示 Web 瀏覽器/iframe的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個腳本,如果對人們回答問題有幫助的話,我正在使用 kivy.我想讓它在運行時直接顯示 iframe 之類的東西,而不是打開瀏覽器.例如這樣的:

                  I have a script which if helpful to people answering questions, is using kivy. I want to have it show a iframe kind of thing right into it when run, instead of opening the browser. For example something like this:

                  def browser():
                      url = "google.com"
                      iframe(url)
                  browser()
                  

                  顯然這不起作用,因為 python 不是 html.請記住,我不是想跑步這個腳本在網絡上,但在 kivy 啟動器上.正如預期的那樣,它不應該打開瀏覽器,而是在腳本內置的框中顯示頁面.

                  Obviously this wouldnt work as python is not html. Keep in mind, I am not trying to run this script on the web, but on the kivy launcher. As intended, it should not open the webbrowser but instead show the page in a box built right into the script.

                  推薦答案

                  這是一個在Kivy Launcher"應用程序中運行的實際運行示例:

                  Here's an actual running example which works right inside the "Kivy Launcher" app:

                  import kivy                                                                                     
                  from kivy.app import App                                                                        
                  from kivy.lang import Builder                                                                   
                  from kivy.utils import platform                                                                 
                  from kivy.uix.widget import Widget                                                              
                  from kivy.clock import Clock                                                                    
                  from jnius import autoclass                                                                     
                  from android.runnable import run_on_ui_thread                                                   
                  
                  WebView = autoclass('android.webkit.WebView')                                                   
                  WebViewClient = autoclass('android.webkit.WebViewClient')                                       
                  activity = autoclass('org.renpy.android.PythonActivity').mActivity                              
                  
                  class Wv(Widget):                                                                               
                      def __init__(self, **kwargs):                                                               
                          super(Wv, self).__init__(**kwargs)                                                      
                          Clock.schedule_once(self.create_webview, 0)                                             
                  
                      @run_on_ui_thread                                                                           
                      def create_webview(self, *args):                                                            
                          webview = WebView(activity)                                                             
                          webview.getSettings().setJavaScriptEnabled(True)                                        
                          wvc = WebViewClient();                                                                  
                          webview.setWebViewClient(wvc);                                                          
                          activity.setContentView(webview)                                                        
                          webview.loadUrl('http://www.google.com')
                  
                  class ServiceApp(App):                                                                          
                      def build(self):                                                                            
                          return Wv()                                                                             
                  
                  if __name__ == '__main__':                                                                      
                      ServiceApp().run()
                  

                  這篇關于Python - 在應用程序中顯示 Web 瀏覽器/iframe的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)

                  <tfoot id='yZujP'></tfoot>
                    <bdo id='yZujP'></bdo><ul id='yZujP'></ul>

                        <i id='yZujP'><tr id='yZujP'><dt id='yZujP'><q id='yZujP'><span id='yZujP'><b id='yZujP'><form id='yZujP'><ins id='yZujP'></ins><ul id='yZujP'></ul><sub id='yZujP'></sub></form><legend id='yZujP'></legend><bdo id='yZujP'><pre id='yZujP'><center id='yZujP'></center></pre></bdo></b><th id='yZujP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yZujP'><tfoot id='yZujP'></tfoot><dl id='yZujP'><fieldset id='yZujP'></fieldset></dl></div>
                              <tbody id='yZujP'></tbody>

                            <small id='yZujP'></small><noframes id='yZujP'>

                            <legend id='yZujP'><style id='yZujP'><dir id='yZujP'><q id='yZujP'></q></dir></style></legend>

                          • 主站蜘蛛池模板: 一级黄色日本片 | 国产一区二区在线免费播放 | 欧美a∨| 久久久久久国产精品久久 | 狠狠影院 | 国产香蕉视频在线播放 | 久久久久久免费毛片精品 | 亚洲高清av在线 | 一区二区免费在线 | 亚洲午夜av久久乱码 | 色av一区二区三区 | 国产精品亚洲一区二区三区在线 | 国产高清精品网站 | 欧美色综合一区二区三区 | 日韩精品久久久 | 国产又色又爽又黄又免费 | 久久性| 国产人免费人成免费视频 | 九九九久久国产免费 | 亚洲一区二区av | 国产精品99视频 | 日韩色综合 | 在线观看成人小视频 | 国产一区二区影院 | 亚洲91精品| 欧美成人激情视频 | 99久久婷婷国产综合精品首页 | 日韩精品一区二区三区在线观看 | www免费视频| 粉嫩一区二区三区四区公司1 | av影音| 天天夜夜人人 | 岛国av免费看 | 久久躁日日躁aaaaxxxx | 中文字幕欧美日韩 | 久久久久成人精品 | 日韩成人高清 | 欧美精品久久 | 羞羞在线视频 | 亚洲不卡一| 欧美成人a∨高清免费观看 老司机午夜性大片 |