wx.EVT_SIZE crossplatform problem

Sorry don’t have an real answer for you, but…
Are you using sizers? If not have you considered using them?
Looking at the screen shot I would also suggest to look at
wx.lib.agw.aui
Werner

···

On 16/11/2012 23:58, Seg_mel wrote:

Hello!

          I write the program for Linux and Windows...The program

includes form with a wx.Notebook. On first page of notebook is
located wx.Notebook too. On each page this notebook located
Grids, Buttons and other elements. . I need to resize these
Grids, when changed/changing window of program. I use

self.Bind(wx.EVT_SIZE, self.edit_panel_size)

          for

resizing the panel with a first Notebook. Then similary resize
Grids on second Notebook, getting the panel size.

          When

I change the size of Grids, I use AutoSizeRows(). In Windows I
have no problems, but in Linux(Ubuntu 11.10, OpenSUSE) the
program is started in 20 seconds, because I get 10 resize
events. 20 seconds, because used AutoSizeRows() and big Grids.
In Windows I get 1 resize event.

          Tell

me, please, how to fix it? Where put the flag for stopping the wx.EVT_SIZE before create
a window? Or another way?