RE: Application
[email protected] (Dallas Johnston) Sat, 30 Nov 2002 06:10:02 -0500
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <[email protected]> |
This behaviour was added to Applications recently. As Applications aren't wrappers, per se, it is necessary to pass the **kwds through to the super's (AbstractApplication) __init__ method in order for it to set the name and version attributes. In this case, Application is really the exception to the rule for backend classes. One could make Application a real wrapper, but it is so simple that it is not really necessary. Robin Becker <[email protected]> wrote: >Traceback (most recent call last): > File "C:\Python\devel\anygui\test\test_openfiledlg.py", line 14, in ? > app = Application(name='Test OpenFileDlg', version='1.0') >TypeError: __init__() got an unexpected keyword argument 'version' > > >running through the latest tests I see the above for >test_openfiledlg.py. > >This is caused by the ctmswgui Application class not doing the right >thing wrt arguments. > >Is there a master lists somewhere of what the backends are supposed to >implement (with signatures)? >-- >Robin Becker > > >------------------------------------------------------- >This SF.net email is sponsored by: Get the new Palm Tungsten T >handheld. Power & Color in a compact size! >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en