dabodemo Commit
Revision 330
Date: 2005-10-30 16:59:39 -0800 (Sun, 30 Oct 2005)
Author: paul

Changed:
U   trunk/bubblet/BubbleBizobj.py
U   trunk/bubblet/BubbletForm.py

Log:
Renamed the menu function to match Dabo. Also discovered the getattr()
recursion problem, because of the setting of DataSource before we have
a connection. Actually, there is no connection but it was trying anyway.
Commenting out the setting of DataSource seems to have worked around the
issue, but Ed you may want to have a look...


Diff:
Modified: trunk/bubblet/BubbleBizobj.py
===================================================================
--- trunk/bubblet/BubbleBizobj.py       2005-10-28 22:31:07 UTC (rev 329)
+++ trunk/bubblet/BubbleBizobj.py       2005-10-31 00:59:39 UTC (rev 330)
@@ -8,7 +8,7 @@
 
 class BubbleBizobj(biz.dBizobj):
        def beforeInit(self):
-               self.DataSource = "Bubble"
+               #self.DataSource = "Bubble"
                self.bubbles = []
                self.selCount = 0
                self.__score = 0

Modified: trunk/bubblet/BubbletForm.py
===================================================================
--- trunk/bubblet/BubbletForm.py        2005-10-28 22:31:07 UTC (rev 329)
+++ trunk/bubblet/BubbletForm.py        2005-10-31 00:59:39 UTC (rev 330)
@@ -62,10 +62,10 @@
                # Add the menu items
                mb = self.MenuBar
                fm = mb.getMenu("File")
-               quitPos = fm.getItemPosByCaption("Quit")
+               quitPos = fm.getItemIndex("Quit")
                if quitPos is None:
                        # Win/Lin
-                       quitPos = fm.getItemPosByCaption("Exit")
+                       quitPos = fm.getItemIndex("Exit")
                if quitPos is None:
                        quitPos = len(fm.Children)
                fm.insert(quitPos, "&ScreenShot\tCtrl+S", 
bindfunc=self.saveScreenShot)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to