The Question (TL;DR):
I'm making a PyQt program both for fun with my friends, and to put on GitHub to show programming experience for employers/recruiters. I wanted to make the text of a couple of QLabels in my program have text outlines, and found a class written by someone on Stack Overflow that achieves that effect. Is it enough to write a docstring at the top of that file (and as part of my program and repo README's) citing that classes' author, link for the code post, and a clear statement saying that they were the author of this specific class in my code? Or do I need to get in touch with that author/do more to cite that class? Should I just avoid this QLabel visual effect all together regardless of citation since I couldn't figure out how to do it on my own?
The Context
So I recently graduated from uni and my main career goal is to officially develop, release, and sell a game I've been working on since high school. In the meantime, I wanted to test out if some of the concepts/mechanics were sound, and I'm a Dungeon Master for my friends for D&D, so I homebrewed a custom version of D&D with the characters, mechanics, and story beats as a form of play testing (they are aware of this, and have been very supportive!).
I wanted to make a digital and automated character sheet using PyQt in place of our printed one. While all the logic, concepts, layouts, etc. have all been made entirely by myself using the PyQt library, I wanted to make the text for a couple Qlabels have text outlines (not label border, but character outlines). When I was looking up what PyQt tool(s) I could use to achieve that effect, I found the exact same question I was asking here on Stack Overflow and someone had given a great answer in the form of a class they wrote. I'm still totally new to PyQt and wherever I looked, the approach to getting that same appearance basically had to be custom made using more or less the same steps/concepts as this class.
The Full Question:
Since I obviously didn't write this one QLabel-related class, I put it in its own file and wrote a docstring at the top stating that this class in specific was not written by me, but by user XXX on Stack Overflow, and I also included a link to the specific post where they offered their class. I also included this class's citation in my program's README file. Based on this context, is my citation of author and link sufficient or is there additional attribution I would have to give or direct permission I should get?
I have no plans of monetizing this character sheet program or that kind of stuff. It's just to have fun with my friends and make it public on GitHub, so employers can see that I have some experience with Python. Also, does using this one class to make my labels look nicer reflect poorly on my own coding ability in the eyes of potential employers/turn them away even with the proper citation?