CVS: anygui/lib/anygui Applications.py,1.23,1.24 Frames.py,1.34,1.35 __init__.py,1.72,1.73
"Dallas T. Johnston" <[email protected]> Wed, 13 Nov 2002 09:19:24 -0800
| Newsgroups | gmane.comp.python.anygui.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/anygui/anygui/lib/anygui
In directory usw-pr-cvs1:/tmp/cvs-serv4972/lib/anygui
Modified Files:
Applications.py Frames.py __init__.py
Log Message:
lots of goodies...
1) added pure anygui dialogs
2) fixed many bugs
3) enhanced Application with name and version
Index: Applications.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/Applications.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** Applications.py 5 Aug 2002 06:27:43 -0000 1.23
--- Applications.py 13 Nov 2002 17:19:22 -0000 1.24
***************
*** 8,18 ****
_running = 0
! def __init__(self):
Attrib.__init__(self)
self._windows = []
self._wrappers = []
anygui._application = self
def add(self, win):
for w in flatten(win):
--- 8,40 ----
_running = 0
+ _name = "Anygui App"
+ _version = "0"
! def __init__(self, **kwds):
Attrib.__init__(self)
+ self.parseKwds(**kwds)
self._windows = []
self._wrappers = []
anygui._application = self
+ def parseKwds(self, **kwds):
+ keys = kwds.keys()
+ if 'name' in keys:
+ self._name = kwds['name']
+ if 'version' in keys:
+ self._version = kwds['version']
+
+ def getName(self):
+ return self._name
+
+ def setName(self, name):
+ self._name = name
+
+ def getVersion(self):
+ return self._version
+
+ def setVersion(self, version):
+ self._version = version
+
def add(self, win):
for w in flatten(win):
***************
*** 70,71 ****
--- 92,96 ----
self._wrappers.remove(wrapper)
except ValueError: pass
+
+ def quit(self):
+ raise UnimplementedMethod, (self, "quit")
Index: Frames.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/Frames.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** Frames.py 21 Aug 2002 04:28:45 -0000 1.34
--- Frames.py 13 Nov 2002 17:19:22 -0000 1.35
***************
*** 48,53 ****
def destroy(self):
! while self.contents:
! self.contents[0].destroy()
Component.destroy(self)
--- 48,55 ----
def destroy(self):
! "This is used for destroying whole windows from the application."
! for component in self.contents:
! self.remove(component)
! component.destroy()
Component.destroy(self)
Index: __init__.py
===================================================================
RCS file: /cvsroot/anygui/anygui/lib/anygui/__init__.py,v
retrieving revision 1.72
retrieving revision 1.73
diff -C2 -r1.72 -r1.73
*** __init__.py 20 Oct 2002 12:27:54 -0000 1.72
--- __init__.py 13 Nov 2002 17:19:22 -0000 1.73
***************
*** 50,53 ****
--- 50,56 ----
from anygui.Menus import MenuBar, Menu, MenuCommand, MenuCheck, MenuSeparator
+ # import objects from dialogs
+ from anygui.dialogs import *
+
########### End Imports ###################################################
***************
*** 82,85 ****
--- 85,90 ----
unlinkMethods
unlinkSource
+ AboutAnyguiDlg
+ AnyguiOpenFileDlg
""".split()
-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about
your web server security? Click here for a FREE Thawte
Apache SSL Guide and answer your Apache SSL security
needs: http://www.gothawte.com/rd523.html