Re: [Anygui-devel] basic example doesn't work with wxPython
Brought to you by:
mlh
From: Magnus L. H. <ma...@he...> - 2005-04-15 20:49:46
|
Francisco Gutierrez <fra...@al...>: > > 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] |