Making a change in a module then reloading it
I am adjusting the wxPython DragImage demo, and I have a main file that i execute which imports the DragImage demo... I want to make changes to the DragImage demo then reload the file, to view the changes. For example, i want to insert someth开发者_如何学Cing in a list on the DragImage, then save the DragImage, then when reloading it on my main file the changes appear... how can that happen please help me my project is due in 8 hrs...
Use the builtin function reload(modulename)
精彩评论