From kzielinski at gmail.com Thu Dec 8 06:52:12 2005 From: kzielinski at gmail.com (konrad Zielinski) Date: Thu, 8 Dec 2005 16:52:12 +1100 Subject: [Idle-dev] MUltiple Instances of IDLE Message-ID: <7fa65f9c0512072152u16517e82h9d58ac397fabfe28@mail.gmail.com> Hi, I have been experimentign with Ways to get multiple instances of IDLE running at the same time. As a quick hack I copied PyShell.py and changed the hard coded port Number. However I found that my Changed code only workds when run from the libidle directory. Any attempt ro run it from else where yeilds the following Error: Traceback (most recent call last): File "", line 1, in ? ImportError: No module named run if I cd into the libidle directory first i can run PyShell2.py correctly. Can anyone shead any light on what is happening here ? Now Onto My main question .... I'm planning to patch IDLE to allow multiple instances. Is this a feture that would be considered for addition into the distibution? The comments at the top of rpc.py seem to suggest that limiting to a single instance was a deliberate design decision. My options seem to either try ports systamatically, or at random. Random will probably work a good percentage of the time. Hoever the issue then becomes how to recover gracefully in the event (which will eventually occure) that it tries a port which is already being used. As far as I understand IDLE is following a model similer to X windows where the GUI is the server and the interpreter that is executing user code is the client (yes / no) My other IDLE Grip (again I will be happy to attempt a patch for this if there is interest in having it): Option of running IDLE with editor windows in tabs rather than seperate windows. Personally I find tabbed interfaces easier to work with. From fuzzyman at voidspace.org.uk Thu Dec 8 09:51:51 2005 From: fuzzyman at voidspace.org.uk (Fuzzyman) Date: Thu, 08 Dec 2005 08:51:51 +0000 Subject: [Idle-dev] MUltiple Instances of IDLE In-Reply-To: <7fa65f9c0512072152u16517e82h9d58ac397fabfe28@mail.gmail.com> References: <7fa65f9c0512072152u16517e82h9d58ac397fabfe28@mail.gmail.com> Message-ID: <4397F427.9040202@voidspace.org.uk> konrad Zielinski wrote: >[snip...] >My other IDLE Grip (again I will be happy to attempt a patch for this if there >is interest in having it): > >Option of running IDLE with editor windows in tabs rather than >seperate windows. Personally I find tabbed interfaces easier to work >with. > > By the way, this is the main reason I switched from IDLE to SPE. :-) (Although I still use IDLE for some things - mainly because it is faster loading). All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml >_______________________________________________ >IDLE-dev mailing list >IDLE-dev at python.org >http://mail.python.org/mailman/listinfo/idle-dev > > > From kzielinski at gmail.com Fri Dec 9 03:53:33 2005 From: kzielinski at gmail.com (konrad Zielinski) Date: Fri, 9 Dec 2005 13:53:33 +1100 Subject: [Idle-dev] Installing IDLE Message-ID: <7fa65f9c0512081853u27c36414le54153e863ab193f@mail.gmail.com> Hi, I'm trying to install the new version of IDLE lib and have encountered the following problem: When I attempt to use auto completion I get the following error: Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__ return self.func(*args) File "/usr/local/lib/python2.4/idlelib/AutoComplete.py", line 63, in force_ope n_completions_event self.open_completions(True, False, True) File "/usr/local/lib/python2.4/idlelib/AutoComplete.py", line 152, in open_com pletions comp_lists = self.fetch_completions(comp_what, mode) File "/usr/local/lib/python2.4/idlelib/AutoComplete.py", line 181, in fetch_co mpletions (what, mode), {}) File "/usr/local/lib/python2.4/idlelib/rpc.py", line 211, in remotecall return self.asyncreturn(seq) File "/usr/local/lib/python2.4/idlelib/rpc.py", line 242, in asyncreturn return self.decoderesponse(response) File "/usr/local/lib/python2.4/idlelib/rpc.py", line 259, in decoderesponse raise RuntimeError, what RuntimeError: Unsupported method name: 'get_the_completion_list' The reason I placed the files under /usr/local is to avoid making manual changes in the normal /usr hierarchy, as this is the domain of my package management system. Regards Konrad PS I just realised that my previous post regarding Network Ports wasn't signed. I was in a rush and neglected that detail. From noamraph at gmail.com Sat Dec 10 19:45:05 2005 From: noamraph at gmail.com (Noam Raphael) Date: Sat, 10 Dec 2005 20:45:05 +0200 Subject: [Idle-dev] Installing IDLE In-Reply-To: <7fa65f9c0512081853u27c36414le54153e863ab193f@mail.gmail.com> References: <7fa65f9c0512081853u27c36414le54153e863ab193f@mail.gmail.com> Message-ID: Hello, Is it possible that there's still access to the old version of IDLE? My guess is that the IDLE's subprocess finds the "idlelib.run" module from the previous installation, which doesn't include the new "get_the_completion_list" method, and that's why it fails. Make sure that when you run Python, there's no way to import the old IDLE's modules. I hope this helps, Noam On 12/9/05, konrad Zielinski wrote: > Hi, > > I'm trying to install the new version of IDLE lib and have encountered > the following > problem: > > When I attempt to use auto completion I get the following error: > > Exception in Tkinter callback > Traceback (most recent call last): > File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__ > return self.func(*args) > File "/usr/local/lib/python2.4/idlelib/AutoComplete.py", line 63, in force_ope > n_completions_event > self.open_completions(True, False, True) > File "/usr/local/lib/python2.4/idlelib/AutoComplete.py", line 152, in open_com > pletions > comp_lists = self.fetch_completions(comp_what, mode) > File "/usr/local/lib/python2.4/idlelib/AutoComplete.py", line 181, in fetch_co > mpletions > (what, mode), {}) > File "/usr/local/lib/python2.4/idlelib/rpc.py", line 211, in remotecall > return self.asyncreturn(seq) > File "/usr/local/lib/python2.4/idlelib/rpc.py", line 242, in asyncreturn > return self.decoderesponse(response) > File "/usr/local/lib/python2.4/idlelib/rpc.py", line 259, in decoderesponse > raise RuntimeError, what > RuntimeError: Unsupported method name: 'get_the_completion_list' > > The reason I placed the files under /usr/local is to avoid making > manual changes in the normal /usr hierarchy, as this is the domain of > my package management system. > > Regards > > Konrad > > PS I just realised that my previous post regarding Network Ports > wasn't signed. I was in a rush and neglected that detail. > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev >