Errors in __init__
"N. Wieland" <[email protected]> Sat, 26 Oct 2002 18:07:08 +0000
| Newsgroups | gmane.comp.python.anygui.general |
|---|---|
| Message-ID | <[email protected]> |
I'm using anygui from CVS on Debian SID and Gnome 2.
Here's the simple code I've tried:
****
from anygui import *
win = Window(title = "anyGUI !",
size = (600, 400))
editor = TextArea(size = (600, 400))
win.add(editor)
app = Application()
app.add(win)
app.run()
****
Traceback (most recent call last):
File "any.py", line 4, in ? size = (600, 400))
File "/usr/lib/python2.2/site-packages/anygui/Windows.py", line 8, in __init__
Frame.__init__(self, *args, **kw)
File "/usr/lib/python2.2/site-packages/anygui/Frames.py", line 14, in __init__
Component.__init__(self, *args, **kw)
File "/usr/lib/python2.2/site-packages/anygui/Components.py", line 30, in __init__
Proxy.__init__(self, *args, **kw)
File "/usr/lib/python2.2/site-packages/anygui/Proxies.py", line 15, in __init__
self.rawDictSet('wrapper',self.wrapperFactory())
File "/usr/lib/python2.2/site-packages/anygui/Windows.py", line 12, in wrapperFactory
return backendModule().WindowWrapper(self)
File "/usr/lib/python2.2/site-packages/anygui/backends/tkgui.py", line 589, in __init__
ComponentWrapper.__init__(self, proxy)
File "/usr/lib/python2.2/site-packages/anygui/backends/tkgui.py", line 50, in __init__
AbstractWrapper.__init__(self, *args, **kwds)
File "/usr/lib/python2.2/site-packages/anygui/Wrappers.py", line 84, in __init__
application().manage(self)
File "/usr/lib/python2.2/site-packages/anygui/__init__.py", line 9, in application raise RuntimeError, 'no application exists'
RuntimeError: no application exists
****
I've tried also import anygui as gui.
I'm just not skilled enought to understand my error, I need a hand...
Ah, with anygui 1.1 it works !
Thanks in advance,
Cheers,
--
(__) | Nicholas Wieland | - ------------
(oo) | [email protected] | - | There's no |
/------\/ | Debian GNU/Linux / Mac OS X | - | place like |
/ | || ----------------------------- - | *GNOME(2)* |
* /\---/\ ...."Have you mooed today?".... - ------------
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com