Answer the question
In order to leave comments, you need to log in
Incorrect work of Sublime Text 3 and Python3. How to win?
I have been writing in Sublime for a long time, then I came across the following:
def test_button_event(self):
item_list = []
for i in self.tree.get_children():
#print(i)
#print(self.tree.item(i, 'values'))
item_list.append(list(self.tree.item(i, 'values')))
print(item_list)
# print('foo')
Answer the question
In order to leave comments, you need to log in
The output to the console did not work because of the Cyrillic alphabet in the output list.
Added to sublime-build "env": {"PYTHONIOENCODING": "UTF-8"}
Now it all looks like this:
{
"cmd": "c:/Python34/python.exe -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "UTF-8"}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question