beowulfey / pylinnaeo

Biology sequence manager, written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redrawing, losing focus, etc changes position in the alignment window

beowulfey opened this issue · comments

commented

This means that if you try and capture the output to image, it always shows the beginning. No good!
I have to save the position on the screen prior to redrawing it so that it scrolls back to the same spot on redraw.

I can try grabbing the character in the center or something, but that value will change with different sizes... might be tougher than it seems.

commented

I may be able to bypass the core issue that it doesn't save position on losing focus (thus making image output impossible) when I rebuild the app framelessly.

commented

Ended up fixing this by storing the scroll bar value and reloading after redraw. It's not perfect for resizing, but it gets the job done, and fixes the point above.