Re: Can't run tutorial program

Magnus Lie Hetland <[email protected]> Sun, 16 Feb 2003 03:04:44 +0100
Newsgroups gmane.comp.python.anygui.general
Message-ID <[email protected]>
Paul E. Lehmann <[email protected]>:
>
> I have downloaded and installed Anygui on Windows XP Home Edition.

Which version of Anygui do you have -- 0.1.1?

> I have a problem when trying to run the example program in the tutorial.

Which back-end are you using? If you don't know, try doing the
following in an interactive Python terminal:

>>> from anygui import *
>>> backend()

(At least I think that should work in 0.1.1.)

> The output window flickers like it is stuck in a loop and finally
> stops with the hour glass symbol showing.  If I click in the window
> the title bar says (not responding).  
> 
> Is this a problem with Windows XP or a Anygui problem.  I have taken
> just the part of the sample program and just created a window and
> ran the program with the same results.

Sounds like a bug in Anygui. If you're using 0.1.1, the problem may
well be fixed in 0.2a0, but that version is not yet considered stable
in any way, and may not be released for a while. You can still
download it (either from CVS or the nightly snapshot from tne Web
site).

Please also try the following code:

app = Application()
win = Window()
app.add(win)
app.run()

The order is important -- i.e. create the application before the
window. If you did it the other way around, this may solve your
problem... I see that this is handled the wrong way in the tutorial --
I'll fix that promptly. (It didn't matter originally, but it does
now.)

-- 
Magnus Lie Hetland               "Nothing shocks me. I'm a scientist." 
http://hetland.org                                   -- Indiana Jones


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf