in app.saveWindowState, there is this bit:

val = base64.encodebytes(val).decode('ascii')

This ought to be equivalent to  

val_str = val.decode() 

UTF-8 is the implied encoding, which will work for all-ascii bytes.  Or if 
the QT5 decoding actually is base64, then just use that as the argument of 
decode().

val is returned by QT5 as a C++ bye array.  I don't know whether pyqt5 
turns that into a Python bytearray or a Python bytes object, but either 
should decode as above.

Not that this would solve the current issue :)


On Monday, September 14, 2020 at 1:15:49 PM UTC-4, Thomas Passin wrote:
>
> According to this, before calling restoreState(), restoreGeometry() should 
> be called -
>
> https://doc.qt.io/qt-5/restoring-geometry.html
>
> I don't see the geometry being saved or restored anywhere.  (I found this 
> link by searching for "qt5 restoreState").
>
>
> On Monday, September 14, 2020 at 1:04:09 PM UTC-4, Thomas Passin wrote:
>>
>> On Monday, September 14, 2020 at 12:06:26 PM UTC-4, Edward K. Ream wrote:
>>>
>>>
>>>
>>> On Sun, Sep 13, 2020 at 7:58 AM Thomas Passin <[email protected]> wrote:
>>>  
>>>
>>>> Not yet happy:  with --use-docks, a new outline opens with the default 
>>>> layout, not with the layout of the first open outline.
>>>>
>>>
>>> Thanks for your continued testing.  I have improved my testing, and I 
>>> see that you are correct.
>>>
>>> It appears that despite calling dw.restoreState (with the correct dw), 
>>> all outlines open with the default state, except the very first outline. 
>>> I'm not sure what, if anything, can be done. Just now I am stumped.
>>>
>>
>> I don't see how I can help with that as yet - I'm clueless about how the 
>> code works.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/1687bb78-bb5a-4e19-8ff3-00c08bc6f6abo%40googlegroups.com.

Reply via email to