commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9502 - trunk/gnue-forms/src/uidrivers/wx26/widgets


From: johannes
Subject: [gnue] r9502 - trunk/gnue-forms/src/uidrivers/wx26/widgets
Date: Tue, 17 Apr 2007 04:26:18 -0500 (CDT)

Author: johannes
Date: 2007-04-17 04:26:18 -0500 (Tue, 17 Apr 2007)
New Revision: 9502

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py
Log:
Only realize the toolbar for non-dialogs
issue162 testing


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py 2007-04-17 08:35:54 UTC 
(rev 9501)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py 2007-04-17 09:26:18 UTC 
(rev 9502)
@@ -202,9 +202,9 @@
 
     def __update_sizer (self):
 
-        tlb =self.main_window.GetToolBar()
-        if tlb is not None:
-            tlb.Realize()
+        if not isinstance(self.main_window, wx.Dialog) and \
+                self.main_window.GetToolBar():
+            self.main_window.GetToolBar().Realize()
 
         if isinstance(self._container, wx.Notebook):
             self._container.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]