Hi
I am trying to get the main window of my application into the same
position as it was before I closed the application.
Therefore, I get the position from
position = self.main_window.GetScreenPositionTuple()
and save it to a file.
When restarting, I read the file and set the position
self.SetPosition(position)
However, the position is off:
Position before exit: (351, 170)
Position after restart: (350, 141)
The difference looks similar to the border size to me.
I have attached a small example.
How do I set the Window position without such an offset?
My configuration:
Debian testing
Python 2.7.8
wxPython 3.0.1.1 gtk2 (classic)
Window manager E17 0.17.6
A user has reported a similar effect on Windows 8.
Martin
window_test.py (738 Bytes)