Here an simple example, howto ask the user:
class YourOwnCommand(sublime_plugin.WindowCommand): # maybe also .TextCommand or .ApplicationCommand
def run(self):
# call the methode with user input panel
self.question_one()
def question_one(self):
self.window.show_input_panel("This is question one", # caption, initial_text, on_done, on_change, on_cancel
"Initial text", self.on_answer_one, None, None)
def on_answer_one(self, user_input):
if user_input != '':
# user_input is the given answer, you can use it now
self.question_two()
def question_two(self):
self.window.show_input_panel("This is question two",
"Initial text", self.on_answer_two, None, None)
def on_answer_two(self, user_input):
if user_input != '':
# user_input is the given answer, you can use it now
# and so on ....
For row and column you need only one interaction with user. Comma seperated answer for both.