Re: [Anygui-users] anygui.backend()
Brought to you by:
mlh
From: Stephen B. <st...@th...> - 2002-02-08 14:50:52
|
On Friday 08 February 2002 01:45 am, you wrote: > 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. Magnus, but it _does_ seem to work, at least on windows. Each time I try it, I get a different window (the little tk decoration in the window bar, etc.) On linux, I get: 'import site' failed; use -v for traceback Traceback (most recent call last): File "<stdin>", line 8, in ? ImportError: No module named anygui.backends.tkgui ___________ Stephen From here to there and there to here, funny things are everywhere. -- Dr Seuss > 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 |