Re: [Anygui-users] anygui.backend()
Brought to you by:
mlh
|
From: Magnus L. H. <ma...@he...> - 2002-02-08 07:45:48
|
Boulet Stephen-CSB046 <Ste...@mo...>: > > Is the anygui.backend() function supposed to report all available backends or just a default one? > > I have tk, wx, and msw available, and msw is the only one reported reported (anygui 0.1; python 2.2). Hi! The backend function simply tells you which backend is currently in use. msw is the default whenever it is available. If you want something else, use ANYGUI_WISHLIST. The way you're doing things in the code example won't really work. Importing the backend directly is necessary to tell wrappers (like py2exe) which modules they need to include, but won't override the automatic backend selection (unfortunately). To do that, you'll have to set ANYGUI_WISHLIST (as an environment variable) to the backend you wish to use. This is considered a flaw (noted briefly in KNOWN_BUGS) and will be fixed in release 0.2, where you won't need environment variables at all. > Thanks. > > -- Stephen -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |