dabo Commit
Revision 6836
Date: 2011-09-08 14:09:34 -0700 (Thu, 08 Sep 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6836

Changed:
U   trunk/dabo/ui/uiwx/dPageFrameMixin.py

Log:
Fixed FlatNotebook issue, where 'select' parameter is by default set to True 
and fires PageChanging event on every newly added page.

Diff:
Modified: trunk/dabo/ui/uiwx/dPageFrameMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPageFrameMixin.py       2011-09-08 21:05:02 UTC (rev 
6835)
+++ trunk/dabo/ui/uiwx/dPageFrameMixin.py       2011-09-08 21:09:34 UTC (rev 
6836)
@@ -221,9 +221,9 @@
                                caption = caption.replace("&", "")
                if imgKey:
                        idx = self._imageList[imgKey]
-                       self.InsertPage(pos, pg, text=caption, imageId=idx)
+                       self.InsertPage(pos, pg, text=caption, select=False, 
imageId=idx)
                else:
-                       self.InsertPage(pos, pg, text=caption)
+                       self.InsertPage(pos, pg, text=caption, select=False)
                self.layout()
                insertedPage = self.Pages[pos]
                insertedPage.Caption = caption



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to