Skip to content

Instantly share code, notes, and snippets.

View kogorman's full-sized avatar
🏠
Working from home

Kevin O'Gorman kogorman

🏠
Working from home
View GitHub Profile
@kogorman
kogorman / README
Created December 27, 2017 14:43
My scrolled table has some glitches I can't figure out
This is the beginning of an app I want to make, just testing how it's going to look. It's useable, but there are some glitches.
tables3.py is based on a file I took from another project.
asker5.py is my app that uses tables3 to support a scrollable table.
You can run either one of them, but I'm mostly interested in asker.
1 I specify column_minwidths as a list of widths in characters, but sometimes I need to express widths in pixels. I'm not sure how to convert based on the current font of a widget.
2. There is some strange movement of the table when it first gets enough rows to enable the vertical scrollbar. This is most easily seen if you maximize the window to start with.
a. why does the table start out centered? I'd like it flush left in the canvas
b. why does it become flush left as soon as vertical scrolling starts?