A
A
Artem [email protected]2018-06-04 07:57:39
Python
Artem [email protected], 2018-06-04 07:57:39

How to pass parameters from module to pygt widget?

There is a form made in pygt5 and it has a textEdit.
When working with a plug-in function from a module to a form in textEdit, I wanted to transfer text,
but how to pass parameters from the module to the pygt widget, how to access it ??

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andy_U, 2018-06-05
@Andy_U

Artem ,
This python crashes with an error.
Ah, well, you did almost everything right. See a simplified working version of work.py that takes both parameters and returns a string to add to the window:

def extract(year, month):
    return 'year = '+year+',  month = '+month

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question