Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question