Re: Keeping the Console Open with IDLE

2012-07-15 Thread rantingrickjohnson
On Friday, February 20, 2009 9:41:42 AM UTC-6, David Smith wrote: > What I meant was open open the command prompt, type cd, space, DO NOT > hit enter yet. Drag the folder with your script into the command prompt > window. Then go to the command prompt window and hit enter. This > should compose

Re: Keeping the Console Open with IDLE

2012-07-14 Thread rantingrickjohnson
On Thursday, February 19, 2009 10:06:42 PM UTC-6, W. eWatson wrote: > I'm using IDLE for editing, but execute programs directly. If there are > execution or "compile" errors, the console closes before I can see what it > contains. How do I prevent that? Q: If you are in fact using IDLE to edit y

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-14 Thread rantingrickjohnson
On Thursday, July 12, 2012 1:53:54 PM UTC-5, Frederic Rentsch wrote: > The "hit list" is a table of investment titles (stock, funds, bonds) > that displays upon entry of a search pattern into a respective template. > The table displays the matching records: name, symbol, ISIN, CUSIP, Sec. > Any li

Re: howto do a robust simple cross platform beep

2012-07-14 Thread rantingrickjohnson
On Friday, July 13, 2012 8:00:05 PM UTC-5, gelonida wrote: > I just want to use a beep command that works cross platform. [...] I > just want to use them as alert, when certain events occur within a > very long running non GUI application. I can see a need for this when facing a non GUI interface.

Re: How to safely maintain a status file

2012-07-12 Thread rantingrickjohnson
On Thursday, July 12, 2012 10:13:47 PM UTC-5, Steven D'Aprano wrote: > Rick has obviously never tried to open a file for reading when somebody > else has it opened, also for reading, and discovered that despite Windows > being allegedly a multi-user operating system, you can't actually have > mu

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-27 Thread rantingrickjohnson
On Tuesday, June 26, 2012 1:34:03 AM UTC-5, Stefan Behnel wrote: > First of all, the statement has a rather special syntax that is not obvious > and practically non-extensible. It also has hidden semantics that are hard > to explain and mixes formatting with output - soft-space, anyone? > > The fu

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-27 Thread rantingrickjohnson
On Tuesday, June 26, 2012 1:24:43 AM UTC-5, Stefan Behnel wrote: > Maybe we should add a remote error reporting mode to Python that sends all > syntax error messages not only to the local screen but also directly to the > PSF so that they can fund developers who are able to delete that error > mes

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-27 Thread rantingrickjohnson
> On Mon, 25 Jun 2012 19:28:01 -0700, rantingrickjohnson wrote: > There's no real difference between typing print(...) and all the other > functions in Python. Do you lament having to type len(obj) instead of > "len obj" or list(zip(a, b, c)) instead of "lis

Re: Why has python3 been created as a seperate language where there is still python2.7 ?

2012-06-25 Thread rantingrickjohnson
On Monday, June 25, 2012 5:10:47 AM UTC-5, Michiel Overtoom wrote: > It has not. Python2 and Python3 are very similar. It's not like if > you learn Python using version 2, you have to relearn the language > when you want to switch Python3. The syntax is the same, only > 'print' is a function inste

Re: Tkinter binding question

2012-06-20 Thread rantingrickjohnson
On Wednesday, June 20, 2012 12:07:04 PM UTC-5, Frederic Rentsch wrote: > [...] > Googling I chanced on an excellent introduction "Thinking in > Tkinter" [...] He sets out identifying a common problem with > tutorials: The problem is that the authors of the books want to rush > into telling me abou

Re: Tkinter binding question

2012-06-19 Thread rantingrickjohnson
On Tuesday, June 19, 2012 10:55:48 AM UTC-5, Frederic Rentsch wrote: > If I copy your event descriptors into my program, the button-release > callback still fails. It works in your code, not in mine. Here is what > my code now looks like. It is somewhat more complicated than yours, > because I bind

Re: lazy evaluation of a variable

2012-06-18 Thread rantingrickjohnson
On Sunday, June 17, 2012 6:01:03 PM UTC-5, Steven D'Aprano wrote: > One day, in my Copious Spare Time, I intend to write a proper feature > request and/or PEP for such a feature. Obviously the absolute earliest > such a feature could be introduced is Python 3.4, about 18 months from > now. (Alt

Re: Tkinter binding question

2012-06-18 Thread rantingrickjohnson
On Monday, June 18, 2012 1:21:02 PM UTC-5, Frederic Rentsch wrote: > Hi All, > > For most of an afternoon I've had that stuck-in-a-dead-end feeling > probing to no avail all permutations formulating bindings, trying to > make sense of manuals and tutorials. Here are my bindings: > >label_