From sdaniels at submitnet.net Fri Aug 10 21:57:31 2012 From: sdaniels at submitnet.net (Scott Daniels) Date: Fri, 10 Aug 2012 12:57:31 -0700 Subject: [Idle-dev] An unusual use for single process mode Message-ID: <502567AB.6020008@submitnet.net> I note that several here are contemplating dropping single-process mode. I use idle in single-process mode to interactively develop Tkinter code. The value I find is in how I can try Tkinter commands one-at-a-time and see what happens without building and running a testbed. Try it, you might like it: $ python -m idlelib.idle -n & In the idle window: >>> import Tix >>> p = Tix.Entry(show=u'\xbf') >>> p.master.title('Password') >>> p.pack() >>> p.get() >>> p.get() -Scott David Daniels From roger.serwy at gmail.com Fri Aug 10 23:15:25 2012 From: roger.serwy at gmail.com (Roger Serwy) Date: Fri, 10 Aug 2012 16:15:25 -0500 Subject: [Idle-dev] An unusual use for single process mode In-Reply-To: <502567AB.6020008@submitnet.net> References: <502567AB.6020008@submitnet.net> Message-ID: <502579ED.9010309@gmail.com> On 08/10/12 14:57, Scott Daniels wrote: > I note that several here are contemplating dropping single-process mode. > I use idle in single-process mode to interactively develop Tkinter code. > The value I find is in how I can try Tkinter commands one-at-a-time > and see what happens without building and running a testbed. > I agree that interactive GUI development can be useful. Allowing Tk to work with a subprocess has been fixed in 3.3. See http://bugs.python.org/issue989712 Unfortunately these changes were not backported to 3.2 and 2.7, but they can be added quite simply. Also, the IdleX extensions project provides the EventLoop.py extension which allows for interactive GUI development with Tk, GTK, Qt, WX, and others. See http://idlex.sourceforge.net/extensions.html - Roger From oknproxy at gmail.com Mon Aug 13 20:19:04 2012 From: oknproxy at gmail.com (oliver nguyen) Date: Mon, 13 Aug 2012 11:19:04 -0700 Subject: [Idle-dev] Dragging Window Not Smooth Message-ID: While moving my IDLE window I noticed that the movement is really laggy ? why is this? I tried it at work and home, so it clearly isn't an isolated case. Any suggestions? Regards, oliver -------------- next part -------------- An HTML attachment was scrubbed... URL: From roger.serwy at gmail.com Wed Aug 15 16:42:44 2012 From: roger.serwy at gmail.com (Roger Serwy) Date: Wed, 15 Aug 2012 09:42:44 -0500 Subject: [Idle-dev] Dragging Window Not Smooth In-Reply-To: References: Message-ID: <502BB564.7030007@gmail.com> On 08/13/12 13:19, oliver nguyen wrote: > While moving my IDLE window I noticed that the movement is really > laggy --- why is this? I tried it at work and home, so it clearly > isn't an isolated case. What version of IDLE are you using? What OS are you using? If Linux, are you using a compositing window manager? Are you dragging the window to a different location on the desktop, resizing the window, or scrolling the text contents with the vertical scroll bar? -------------- next part -------------- An HTML attachment was scrubbed... URL: From clockworksaint at gmail.com Wed Aug 15 17:06:49 2012 From: clockworksaint at gmail.com (Weeble) Date: Wed, 15 Aug 2012 16:06:49 +0100 Subject: [Idle-dev] Dragging Window Not Smooth In-Reply-To: <502BB564.7030007@gmail.com> References: <502BB564.7030007@gmail.com> Message-ID: I hadn't noticed it before, but I started Idle 3.2 on Windows 7 and observed it does not move smoothly. Other editors (e.g. I tried GVIM and Notepad) move smoothly when dragged by their title bar. I'd guess they're hitting at least 30fps, probably quite a bit better. Idle has quite jerky movement. I'd guess maybe 10fps. So far as I can tell, this affects all Idle windows, but *only* while the shell window is open. If you have open only a document window, it's smooth and snappy like any other editor. On Wed, Aug 15, 2012 at 3:42 PM, Roger Serwy wrote: > On 08/13/12 13:19, oliver nguyen wrote: > > While moving my IDLE window I noticed that the movement is really laggy ? > why is this? I tried it at work and home, so it clearly isn't an isolated > case. > > What version of IDLE are you using? What OS are you using? If Linux, are you > using a compositing window manager? > > Are you dragging the window to a different location on the desktop, resizing > the window, or scrolling the text contents with the vertical scroll bar? > > > > _______________________________________________ > IDLE-dev mailing list > IDLE-dev at python.org > http://mail.python.org/mailman/listinfo/idle-dev > From tjreedy at udel.edu Wed Aug 15 17:58:25 2012 From: tjreedy at udel.edu (Terry Reedy) Date: Wed, 15 Aug 2012 11:58:25 -0400 Subject: [Idle-dev] Dragging Window Not Smooth In-Reply-To: References: <502BB564.7030007@gmail.com> Message-ID: On 8/15/2012 11:06 AM, Weeble wrote: > I hadn't noticed it before, but I started Idle 3.2 on Windows 7 and > observed it does not move smoothly. Other editors (e.g. I tried GVIM > and Notepad) move smoothly when dragged by their title bar. I'd guess > they're hitting at least 30fps, probably quite a bit better. Idle has > quite jerky movement. I'd guess maybe 10fps. So far as I can tell, > this affects all Idle windows, but *only* while the shell window is > open. If you have open only a document window, it's smooth and snappy > like any other editor. Confirmed with 3.3.0b1, Win7, 64 bit, fast, year-old machine and graphics, including change in edit window behavior with and without shell window. I have not seen anything like this with any other program. If I move window quickly, it seems to jump about 1/4 inch at a time. -- Terry Jan Reedy From roger.serwy at gmail.com Thu Aug 16 05:37:51 2012 From: roger.serwy at gmail.com (Roger Serwy) Date: Wed, 15 Aug 2012 22:37:51 -0500 Subject: [Idle-dev] Dragging Window Not Smooth In-Reply-To: References: <502BB564.7030007@gmail.com> Message-ID: <502C6B0F.1040708@gmail.com> On 08/15/12 10:58, Terry Reedy wrote: > On 8/15/2012 11:06 AM, Weeble wrote: >> I hadn't noticed it before, but I started Idle 3.2 on Windows 7 and >> observed it does not move smoothly. Other editors (e.g. I tried GVIM >> and Notepad) move smoothly when dragged by their title bar. I'd guess >> they're hitting at least 30fps, probably quite a bit better. Idle has >> quite jerky movement. I'd guess maybe 10fps. So far as I can tell, >> this affects all Idle windows, but *only* while the shell window is >> open. If you have open only a document window, it's smooth and snappy >> like any other editor. > > Confirmed with 3.3.0b1, Win7, 64 bit, fast, year-old machine and > graphics, including change in edit window behavior with and without > shell window. I have not seen anything like this with any other > program. If I move window quickly, it seems to jump about 1/4 inch at > a time. > I'm not seeing this problem with Arch Linux under Gnome 3. Try running IDLE without a subprocess to see if the dragging behavior still occurs. The shell window, (PyShell instance) polls the subprocess every 50 ms which may be the source of the delay. Search for "self.pollinterval" in PyShell.py to adjust this value. My guess is that higher values will cause the dragging to be more responsive. The Tk eventloop may be stalling during this poll which may then be preventing the movement of the window. I don't know enough of how Tk and Win7 interact for window placement to be sure, however. - Roger