View Single Post
Old 03-29-2022, 10:59 AM   #487
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,611
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by The_book View Post
Can I use exec in pulgin file? It seems changes nothing.
If I can't, how can I run some code from user's input?Create python file from user's input and then import it?
Plugins are written in Python. If you want user input, you need to create a gui using Python's tkinter or Python for Qt to collect that user input.

You cannot use the plugin framework to collect user input on the command-line.

Last edited by DiapDealer; 03-29-2022 at 11:02 AM.
DiapDealer is offline   Reply With Quote