Re: Window title is not accessible

Dietmar Schwertberger <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
On 07.04.2019 19:54, Igor Korot wrote:
> Maybe, you can have a look at main.py.
>> In wxGladeFrame.__init__ position and size are set:
>>
>>           pos, size, layout = self.init_layout_settings()
>>
>> Maybe you can see there with a few prints what the problem is. Either
>> the stored position/size is wrong or the calculated.
> Well, I don't have any debugging for Python installed on my Mac.
> But if you tell me which file the position is stored, I can check.

I think it's enough to add a this in wxGladeFrame.__init__

     print("POS", pos, size, layout)

and in _check_geometry:

         for d in range(wx.Display.GetCount()):
             display = wx.Display(d)
             client_area = display.ClientArea
             print("CLIENT", d, client_area)

and check whether the position is outside your screen size.

At the moment, a stored screen position is accepted if at least 150 
pixels are visible.

Regards,

Dietmar




_______________________________________________
wxGlade-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxglade-general
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.