On my system, python2.4+win32all build 204,
as well as on the previous build build203 of win32all,
pythonwin is unable to run any script and the Run
Script dialog seems severely borked.
When I hit Ctrl+R it opens the Run Script dialog, and
then it is like something has clicked the Browse
button. The file-open dialog opens. I can not cancel
this dialog, or move it, for every time I move the
current file-open dialog, or cancel it, orclick okay,
another one opens. I can get dozens of File Open
dialogs open at once. Once I am stuck here the only
option is to kill PythonWin from the task manager.
I don't know how to debug this situation, but if anyone
can tell me how to further investigate this, I'll look
into the best I can.
In scriptutils.py, I made the changes marked by
def OnBrowse(self, id, cmd):
** if self.browsing:
** return 0
** self.browsing = 1
dlg = win32ui.CreateFileDialog(1,None,None,openFlags,
"Python Scripts (*.py)|*.py||", self)
self['script'] = dlg.GetPathName()
** self.browsing = 0
This was intended to prevent any endless showing of the
dialog in a loop, which makes the problem less nasty
but doesn't fix the problem. I have no idea how to
really fix it. Also getting rid of the hook command:
Which would disable the browse button completely also
fixes the problem.
My system is Windows XP Service Pack 2, with 2 gb ram.