A
A
Alexander Lyakh2021-06-26 19:49:27
Python
Alexander Lyakh, 2021-06-26 19:49:27

Why doesn't the python eel module output anything? And how can you correctly connect Bootstrap 4 through a file so that there is no error?

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Syberian Bear</title>
        <link rel="icon" type="image/png" href="/icons/Bear-icon.png">
        <link rel="stylesheet" href="/css/bootstrap.min.css" >
        <script  src="/js/jquery-3.6.0.min.js"></script>
        <script src="eel.js"></script>
        <script type="text/javascript">
            async function display_info(){
                inf = document.getElementById('location').value;
                res = await eel.getInf(inf);
                document.getElementById('info').value = res;
            }
            jQuery('#show').on('click',function(){
                display_info();
            });
        </script>
    </head>
    <body>
        <h1>Блин</h1>
        <input id="location" type="text" placeholder="kurwa" required="" value="Pindos">
        <button id="show">Сделать кек</button>
        <div id="info"></div>
    </body>
</html>

import eel

@eel.expose
def getInf(string):
    print(string)
    return string

def main():
    eel.init('web')
    eel.start('main.html', mode="chrome", size=(760, 760))

if __name__ == '__main__':
    main()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question