Re: Restoring saved window properties

Dietmar Schwertberger <[email protected]> Tue, 1 Apr 2025 20:09:01 +0200
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============4969125112880619741==
Content-Type: multipart/alternative;
 boundary="------------yz0YX0FExTBruMRCz12Ok8Q3"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------yz0YX0FExTBruMRCz12Ok8Q3
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 4/1/2025 7:23 PM, Johan Vromans wrote:
> This is what I have now:
>
>          positions = self.layout_settings["sash_positions"][new_layout]
>          self.splitter1.SetSashPosition( positions[0] )
>          self.splitter2.SetSashPosition( positions[1] )
>          if compat.IS_GTK and initial:
>              wx.CallAfter(self.splitter1.SetSashPosition, positions[0] )
>              wx.CallAfter(self.splitter2.SetSashPosition, positions[1] )
>
> Unfortunately, it does not make a difference.

OK, then maybe try replacing "wx.CallAfter(" with e.g. "wx.CallLater(200, ".

If that does not help, then I have no idea...

Regards,

Dietmar

--------------yz0YX0FExTBruMRCz12Ok8Q3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 4/1/2025 7:23 PM, Johan Vromans
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20250401192317.4e6b03f7-KjnUIgV0B0bak1Ioo/c9IoRWq/[email protected]">
      <pre wrap="" class="moz-quote-pre">This is what I have now:

        positions = self.layout_settings["sash_positions"][new_layout]
        self.splitter1.SetSashPosition( positions[0] )
        self.splitter2.SetSashPosition( positions[1] )
        if compat.IS_GTK and initial:
            wx.CallAfter(self.splitter1.SetSashPosition, positions[0] )
            wx.CallAfter(self.splitter2.SetSashPosition, positions[1] )

Unfortunately, it does not make a difference.</pre>
    </blockquote>
    <p>OK, then maybe try replacing "<span style="white-space: pre-wrap">wx.CallAfter(</span>"
      with e.g. "<span style="white-space: pre-wrap">wx.CallLater(200, </span>".</p>
    <p>If that does not help, then I have no idea...</p>
    <p>Regards,</p>
    <p>Dietmar</p>
  </body>
</html>

--------------yz0YX0FExTBruMRCz12Ok8Q3--


--===============4969125112880619741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4969125112880619741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general

--===============4969125112880619741==--