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,
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.