[Tutor] while loops causing python.exe to crash on windows
bob gailer
bgailer at gmail.com
Mon Jun 7 04:15:46 CEST 2010
On 6/6/2010 9:37 PM, Alex Hall wrote:
> On 6/6/10, Lie Ryan<lie.1296 at gmail.com> wrote:
>
>> On 06/07/10 11:08, Alex Hall wrote:
>>
>>> On 6/6/10, bob gailer<bgailer at gmail.com> wrote:
>>>
>>>> On 6/6/2010 8:44 PM, Alex Hall wrote:
>>>>
>>>>> --
>>>>> Have a great day,
>>>>> Alex (msg sent from GMail website)
>>>>> mehgcap at gmail.com;http://www.facebook.com/mehgcap
>>>>>
>>>>>
>>>>>
>>>> What is your question?
>>>>
>>>>
>>>> --
>>>> Bob Gailer
>>>> 919-636-4239
>>>> Chapel Hill NC
>>>>
>>>>
>>>>
>>> Why would that code
What code. I don't see any!
>>> cause Windows to consider the process "not
>>> responding", and how can I fix this so I can have a sort of "listener"
>>> in place, awaiting a change in the "grid.turnOver" variable inside
>>> Player.takeTurn() so that the main while loop can switch to the other
>>> player once the one player's turn is over? I thought while loops would
>>> do it, but Windows sees them as making python.exe unresponsive.
>>>
>> Would you buy me a crystal ball to foresee what you're talking about?
>>
> I am not sure how else to explain it. I want to loop until the value
> of a variable changes, but while that loop is taking place, the user
> should be able to perform actions set up in a wx.AcceleratorTable.
> Looping, though, causes Windows to tell me that python.exe is not
> responding, so I have to close the entire thing. I guess I am looking
> for a "listener", which will sit in the background and only perform an
> action when it detects a certain thing. In this case, a listener to
> watch for a variable to turn from False to True, then to act when it
> sees that change.
>
We are complaining because you first send a post with no content, then
one with a question but no code.
--
Bob Gailer
919-636-4239
Chapel Hill NC
More information about the Tutor
mailing list