Python UI Development, D-2

Published: Sat, 28 Dec 2019

~0 min read

2019/DEC/28th (Day 2)

I learned a bit of the widgets last night, and today I tried and see if I could separate the widget initialization in to its own method from MainWindow.__init__(). Long story short, it didn’t work. Not only did it not work, my whole UI didn’t launch at all, as if all the other widget I didn’t even touch also died somehow. I don’t know - I’ll think more about it at some point, but it doesn’t seem necessary anyway.

The tutorial isn’t as great as I thought it was. It’s on me for expecting tutorials to explain everything, but there were quite a bit where I had to figure by myself.

image

Here’s an example. The entire initialization process is commented out as if we should know what to write. The tutorial never taught us what to write for Dialogs.