wing-ide

how to set run arguments for python when using wing IDE?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 01:05:10
问题 how to set run arguments for python when using wing IDE? D:\TEST\djgprj ├─.idea ├─testdjgprj.wpr ├─testdjgprj.wpu └─testdjg ├─.idea ├─testdjg ├─manage.py ├─static └─templates I create a project using wingIDE, and save to folder D:\TEST\djgprj , but the models , manage.py , programs are in folder D:\TEST\djgprj\testdjg . When I try to run manage.py using wingIDE, I dont know where to set arguments. I know there is one place which is Debug->Run Arguments , but it does not work well. 回答1: Right

How can I print to console while the program is running in python? [duplicate]

混江龙づ霸主 提交于 2019-12-18 15:51:30
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to flush output of Python print? I have have an algorithm that I'm running that takes a while, so I want to keep track of how far it's through, by printing to the console. So something like: import sys def myMethod(): i = 0 while (i<1000000): i = i+1 output_str = str(i) + "\n" sys.stdout.write(output_str) # same as print sys.stdout.flush() myMethod() How can I have this print while it's running, rather than

How can I print to console while the program is running in python? [duplicate]

混江龙づ霸主 提交于 2019-12-18 15:51:01
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to flush output of Python print? I have have an algorithm that I'm running that takes a while, so I want to keep track of how far it's through, by printing to the console. So something like: import sys def myMethod(): i = 0 while (i<1000000): i = i+1 output_str = str(i) + "\n" sys.stdout.write(output_str) # same as print sys.stdout.flush() myMethod() How can I have this print while it's running, rather than

Problem with lack of autocomplete/casting in python

时光怂恿深爱的人放手 提交于 2019-12-14 02:26:52
问题 I have a situation where in first class I declare array, and I pass it to another object, which prints name of elements in this array. It works, but when I input 'car.' in ReadCarNames ide doesn't suggest me 'name' ? I'm trying it in wing ide 4 pro. Can I cast car in method ReadCarNames ? ######################################################################## class MyClass: """""" #---------------------------------------------------------------------- def __init__(self): cars=[] cars.append

Wing IDE not stopping at break points

ぃ、小莉子 提交于 2019-12-11 04:08:40
问题 I am running a project that makes calls to C++ framework functions and python modules, I can run it on Wing IDE with no problems (personal version). However, I can not debug on the run. It only lets me debug a certain file, which is pretty useless. I make a call to a shell script to run the framework function via a python file (init) and that function calls a python module that I want to debug. I have had the same problem with pyCharm. I have spent quite a while trying to figure this out,

Print Urdu/Arabic Language in Console (Python)

我怕爱的太早我们不能终老 提交于 2019-12-11 00:32:04
问题 I am a newbie and i don't know how to set my console to print urdu / arabic characters i am using Wing IDE when i run this code print "طجکسعبکبطکسبطب" i get this on my console ╪╖╪¼┌⌐╪│╪╣╪¿┌⌐╪¿╪╖┌⌐╪│╪¿╪╖╪¿ 回答1: You should encode your string arguments as unicode UTF-8 or later. Wrap the whole code in unicode, and/or mark individual string args as unicode ( u'your text' ) too. Additionally, you should make sure that unicode is enabled in your terminal/prompt window too. #!/usr/bin/env python # -

Wing101 - Configure python 3.3.2 from 2.7.2 on a mac

好久不见. 提交于 2019-12-08 01:41:21
问题 I am relatively new to programming, and I am using Wing101 version: 5.0.0-b8 (rev 29847). The Python Shell within Wing101, is version 2.7.2, how do I configure it to open python 3.3.2. I have downloaded Python 3.3.2 and I need the custom Python Executable. I previously tried "/usr/bin/python" as my custom python executable, but it doesn't work. I am on a Mac 10.8.3 回答1: The location of the python.exe for Python 3.3 can vary depending on how you installed it. Probably the best bet is to search

Generate function calls tree from multiple Python files

青春壹個敷衍的年華 提交于 2019-12-06 16:57:18
问题 I have inherited a bunch of Python files and looking for a way to get an understanding of what is going on within them by collecting information about all the functions that have been defined and called within those files. Example of a file (MainModule.py): Import module1 Import module2 Import module3 ... Def func1(): ... Def func2(): ... result1 = Module1.funcX(args) result2 = Module2.funcY(args) ... By looking into this file, I want IDE to report what functions have been defined within this

Wing101 - Configure python 3.3.2 from 2.7.2 on a mac

邮差的信 提交于 2019-12-06 10:43:20
I am relatively new to programming, and I am using Wing101 version: 5.0.0-b8 (rev 29847). The Python Shell within Wing101, is version 2.7.2, how do I configure it to open python 3.3.2. I have downloaded Python 3.3.2 and I need the custom Python Executable. I previously tried "/usr/bin/python" as my custom python executable, but it doesn't work. I am on a Mac 10.8.3 The location of the python.exe for Python 3.3 can vary depending on how you installed it. Probably the best bet is to search w/ Spotlight for python.exe, press "Show All" in the drop down menu, change to "File Name" instead of

Generate function calls tree from multiple Python files

a 夏天 提交于 2019-12-04 23:26:37
I have inherited a bunch of Python files and looking for a way to get an understanding of what is going on within them by collecting information about all the functions that have been defined and called within those files. Example of a file (MainModule.py): Import module1 Import module2 Import module3 ... Def func1(): ... Def func2(): ... result1 = Module1.funcX(args) result2 = Module2.funcY(args) ... By looking into this file, I want IDE to report what functions have been defined within this file (this is something I can do with Wing IDE), but also what functions (that were defined within .py