[spe-users] Problems with Workspace Commands
Lawrence Gray <lawrence.gray-YbjEcd7v2LAsA/[email protected]> Tue, 24 Oct 2006 20:09:22 -0400
| Newsgroups | gmane.comp.python.spe.user |
|---|---|
| Organization | L. Gray Consulting |
| Message-ID | <[email protected]> |
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html
http://pythonide.stani.be/blog/sm_donate
--
Hi:
I am having problems utilizing workspace commands in SPE 0.8.3.c on
windows XP-SP2 and using wxPython 2.7.1.2. This is not a new problem
though, I have put off writing about it. It has been a problem since I
first tried SPE 8.0
If I have one workspace open, then open another, am I correct in
thinking that all of the files in the first workspace should close?
This appears not to be the case. At least one, sometimes more than one
of the files from the first workspace remain open. Also with the latest
installation of SPE and wxPython I get the following tracebacks,
multiple times
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\_spe\sm\wxp\NotebookCtrl.py", line 2718, in OnMouseMotion
if self.IsPageEnabled(insidetab):
File "C:\Python24\Lib\site-packages\_spe\sm\wxp\NotebookCtrl.py", line 1859, in IsPageEnabled
raise "\nERROR: Invalid Notebook Page In IsPageEnabled: (" + str(nPage) + ")"
ERROR: Invalid Notebook Page In IsPageEnabled: (6)
The workspace feature is handy for organizing multiple projects, but I
tend to use common names in different projects such as MyFrame.py or
MyDialog1.py etc. Could the same file names in different projects be a
problem here?
I was browsing the program files hoping that I could locate the
problem, but am unable to fathom the source of the problem. I note this
in 'parent.py' starting at line 269. Your comment here seems to
confirm my observation.
def loadWorkspace(self):
try:
if self.getValue('CloseChildrenOnNewWorkspace'):
#Close all open children
for child in self.app.children: #this doesn't loop
through all the children (leaves one left)
child.frame.onFrameClose()
except:
pass
But I don't understand why one should be left open.
As a feature request I would suggest that you include an explicit
command to 'Close Workspace' in the file menu and consider implementing
a mechanism for having multiple workspaces open at the same time with
the files in each workspace segregated from each other. Possibly a
double row of tabs above the sidebox & file windows or selection
from the window menu.
Regards
--
----------
Lawrence
Gray
lawrence.gray-YbjEcd7v2LAsA/[email protected]
----------
_______________________________________________
Python-spe-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/python-spe-users