Hi,
Im new to phyton and sublime plugin development.
I am now creating a plugin and at some point I want to get info from the user, and use that info in the next lines of code.
I have figured out how to get the info, but the lines after the user input are executed before the callback function.
Here’s what I mean:
window.show_input_panel("What is the new function name?", '', self.onNewFcNameGiven, None, None)
self.runCommandLine(self.view.file_name(), self.firstLine, self.lastLine, self.newFcName)
So on line 1 I ask for user input, the self.onNewFcNameGiven function receives the user input and puts it in the variable self.newFcName, which would be used in line 2. However line 2 executes before self.newFcName is set in the callback function in line 1.
So, how can I make line 2 run only after the callback function, in line 1, is finished?
Tkx in advance for any help.
Herb