Re: [Tutor] program hangs in while loop using wx.yield

2010-11-16 Thread Alan Gauld
"Patty" wrote then I went through Alan Gauld's tutorial which also helped. Glad to hear it :-) If I just can't figure out how to do this with Tkinter and the Python I can send some basic code if that would help... Imaging Library, is 'wxPython' the additional software I would want to

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-16 Thread Walter Prins
Not wanting to hijack Terry's conversation, but for what it's worth: On 16 November 2010 18:08, Patty wrote: > If I just can't figure out how to do this with Tkinter and the Python > Imaging Library, is 'wxPython' the additional software I would want to > install and try with? Is its purpose to

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-16 Thread Patty
tandards for this language? Regards, Patty - Original Message - From: "Terry Carroll" To: Sent: Monday, November 15, 2010 11:37 PM Subject: Re: [Tutor] program hangs in while loop using wx.yield On Sun, 14 Nov 2010, Alex Hall wrote: Is there a basic tutorial for this

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-15 Thread Terry Carroll
On Sun, 14 Nov 2010, Alex Hall wrote: Is there a basic tutorial for this sort of thing? Chapter 3 ("Working in an event-driven environment") of the book "wxPython in Action" is a pretty good tutorial on event-driven GUI programming in wxPython. The book in general is pretty good; I no longe

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-15 Thread Alan Gauld
"Alex Hall" wrote Is there a basic tutorial for this sort of thing? There are a few books on the suvbject but I can't thik of any titles off the top of my head. And mostly they are written for C++ rather than Python. fraction of a second. However, I need to wait for as long as the human ta

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-14 Thread Walter Prins
On 15 November 2010 00:12, Alex Hall wrote: > Again: is there a basic tutorial that would explain how control works > when dealing with a gui, especially one that is meant to last a long > time but occasionally block input? > Normally the way is for the GUI controls (e.g. widgets, grids, objects

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-14 Thread Alex Hall
On 11/14/10, Alan Gauld wrote: > "Alex Hall" wrote > >> The problem is that I want to go until there is a winner. You are >> right about just letting the mainloop of the gui handle input (I >> forgot the gui is already looping and waiting for input) but I would >> like to make the user pause whil

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-14 Thread Alan Gauld
"Alex Hall" wrote The problem is that I want to go until there is a winner. You are right about just letting the mainloop of the gui handle input (I forgot the gui is already looping and waiting for input) but I would like to make the user pause while the computer goes, this way the user cann

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-14 Thread Alex Hall
On 11/14/10, Alan Gauld wrote: > "Alex Hall" wrote > >> I had this working back in the summer, but have since had to >> restructure some things in the code. Now, my program is hanging >> while >> it waits for the human player to take his/her turn, and I am not >> sure >> how to free it; > > I don

Re: [Tutor] program hangs in while loop using wx.yield

2010-11-14 Thread Alan Gauld
"Alex Hall" wrote I had this working back in the summer, but have since had to restructure some things in the code. Now, my program is hanging while it waits for the human player to take his/her turn, and I am not sure how to free it; I don't really understand this concept in a GUI? Why wo

[Tutor] program hangs in while loop using wx.yield

2010-11-13 Thread Alex Hall
Hi all, I had this working back in the summer, but have since had to restructure some things in the code. Now, my program is hanging while it waits for the human player to take his/her turn, and I am not sure how to free it; as long as it hangs, the player cannot do anything, so it continues to han