質問

In python 3.3.2, how you adjust the time it takes for the suggestion box to appear just after typing a '.'. For example, say I import wxPython and type wx. after 3 seconds a list box would appear showing the available options. Is there any way to set this to appear instantly or in a very short time? Sort of like Visual Studio's intellisense feature which appears instantly.

Thanks in advance :)

役に立ちましたか?

解決

I think you are referring to your IDE, the editor you are using to write your code. If this is the case, that would depend on your editor, which one are you using?

If you are using the built-in editor IDLE, then what you are looking to do is not an available option.

If you are trying to do this within your own code using wxPython (as SexySaxMan suggested), please provide an example of your code so we can get a better idea of what you are trying to do.

他のヒント

I believe what you're looking for is something like time.sleep http://docs.python.org/2/library/time.html#time.sleep

EDIT: I haven't really used wxPython, but I have used Tkinter and Tkinter.after does exactly what you're asking for. Try looking for a parallel in wxPython.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top