R
R
Roman Komyagin2020-09-03 20:54:29
Python
Roman Komyagin, 2020-09-03 20:54:29

How to pass a value from a function with python to javascript with the eel library and vice versa?

Here is the code from which you need to take a function with return and transfer them to a javascript file

def get_stat(place): 
  TRN = config.TRN
  def q():
                #тут должна быть часть кода
    return x.get('value')
                
  def w():
                #тут должна быть часть кода
    return c.get('value')

  def e():
                #тут должна быть часть кода
    return v.get('value')

  def r():
                #тут должна быть часть кода
    return b.get('value')

  def t():
                #тут должна быть часть кода
    return n.get('value')

I am dealing with the library for the first time, but nothing is clear from the official documentation

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Somewhere Intech, 2020-09-04
@john36allTa

I can’t understand python at all .. But it’s obvious ...
5f515f1a850a1501268231.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question