ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> anygui-devel
anygui-devel
Re: [Anygui-devel] basic example doesn't work with wxPython
by Magnus Lie Hetland other posts by this author
Apr 15 2005 1:55PM messages near this date
[Anygui-devel] basic example doesn't work with wxPython | [Anygui-devel] An idea: Anygui Core
Francisco Gutierrez <francisco@[...].edu> :
> 
>  Hi,

Hi!

To post to this list you have to subscribe. (I've manually accepted
this post.)

>  I am trying to develop a quick gui in python, and I downloaded both 
>  anygui and wxPython.  I tried running the basic example in the tutorial:
>  
>  import anygui as gui
>  win=gui.Window()
>  app=gui.Application()
>  app.add(win)
>  app.run()
>  
>  and I get a blinking window that eventually dies.

Do you get a stack trace or something in the terminal where you run it
(if you do run it from a terminal)?

>  When I imported the tk gui as gui directly the example worked. So
>  the reason I am writing is to ask:  1) Is this a known problem?

I don't think so...

Which version of Anygui are you using?

>  If so how do I fix it?  and, 2) In order to use anygui without
>  having to uninstall wxPython, is there a way to make tk my default
>  gui instead of tk?

You could use the wish list mechanism, for example by setting the
environment variable ANYGUI_WISHLIST to 'tk'.

On the other hand -- please note that Anygui is not being actively
developed or supported. It might be a better idea to simply use the
wxPython API directly. It's available for most/all platforms and the
basic stuff is more or less as easy as Anygui. PyQt and Tkinter aren't
too hard either. (It seems Guido prefers wxPython, though [1].)

[1] http://wxpython.org/quotes.php

-- 
Magnus Lie Hetland                    Fall seven times, stand up eight
http://hetland.org                                  [Japanese proverb]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Thread:
Francisco Gutierrez
Magnus Lie Hetland

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved