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

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: johannes
Date: 2007-04-17 03:14:26 -0500 (Tue, 17 Apr 2007)
New Revision: 9499

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py
Log:
Allways realize the toolbar after adding all widgets to it.  This makes 
it visible on wxMSW again.

issue162: testing


Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py	2007-04-12 13:09:10 UTC (rev 9498)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py	2007-04-17 08:14:26 UTC (rev 9499)
@@ -202,6 +202,10 @@
 
     def __update_sizer (self):
 
+        tlb =self.main_window.GetToolBar()
+        if tlb is not None:
+            tlb.Realize()
+
         if isinstance(self._container, wx.Notebook):
             self._container.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED,
                     self.__on_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.