[Anygui-checkins] CVS: anygui/lib/anygui ComboBoxes.py,1.2,1.3 __init__.py,1.75,1.76
Brought to you by:
mlh
From: Dallas T. J. <pan...@us...> - 2002-11-23 16:43:00
|
Update of /cvsroot/anygui/anygui/lib/anygui In directory sc8-pr-cvs1:/tmp/cvs-serv5647/lib/anygui Modified Files: ComboBoxes.py __init__.py Log Message: Moved all the funny frontend widget stuff into genericgui.py. Note that there will be issues with how we want the backend specific use of dialogs to work. This issue mainly relates to naming of backend wrappers. Index: ComboBoxes.py =================================================================== RCS file: /cvsroot/anygui/anygui/lib/anygui/ComboBoxes.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** ComboBoxes.py 17 Nov 2002 18:42:07 -0000 1.2 --- ComboBoxes.py 23 Nov 2002 16:42:57 -0000 1.3 *************** *** 1,4 **** from anygui.Components import Component ! from anygui import Defaults, backendModule, frontEndWrappers class ComboBox(Component, Defaults.ComboBox): --- 1,5 ---- + import anygui.backends.genericgui from anygui.Components import Component ! from anygui import Defaults, backendModule class ComboBox(Component, Defaults.ComboBox): *************** *** 8,10 **** return backendModule().ComboBoxWrapper(self) except(AttributeError): ! return frontEndWrappers().ComboBoxWrapper(self) \ No newline at end of file --- 9,11 ---- return backendModule().ComboBoxWrapper(self) except(AttributeError): ! return anygui.backends.genericgui.ComboBoxWrapper(self) Index: __init__.py =================================================================== RCS file: /cvsroot/anygui/anygui/lib/anygui/__init__.py,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -r1.75 -r1.76 *** __init__.py 17 Nov 2002 18:42:07 -0000 1.75 --- __init__.py 23 Nov 2002 16:42:57 -0000 1.76 *************** *** 33,38 **** unlinkMethods unlinkSource - AboutDialog - OpenFileDialog """.split() --- 33,36 ---- *************** *** 59,68 **** return _backend - def frontEndWrappers(): - 'Returns the list of available frontend widgets' - if not _frontend_wrappers: - raise RuntimeError, 'no frontend wrappers exists' - return _frontend_wrappers - def setup(self, **kwds): 'Used to configure Anygui' --- 57,60 ---- *************** *** 70,78 **** - ########## Get the list of frontend wrappers ############################## - import anygui.frontend_wrappers as few - _frontend_wrappers = few - ########## End get list of frontend wrappers ############################## - ########## Begin Imports ################################################## --- 62,65 ---- *************** *** 98,104 **** from anygui.LayoutManagers import LayoutManager, Placer from anygui.Menus import MenuBar, Menu, MenuCommand, MenuCheck, MenuSeparator - - # import objects from dialogs - from anygui.dialogs import * ########### End Imports ################################################### --- 85,88 ---- |