Long ago and far away. And unforgettable. July 2005
Long ago and far away. And unforgettable. July 2005
Professor Von Explaino kindly steered me towards ChatGPT to solve the problem I was having building a Python gui. His solution worked, for that part of the problem, and made me realise that I ought to ensure that I ask ChatGPT as well as simple search. Having then got my gui up on screen, happy to receive files, for the next series of errors I asked ChatGPT myself.
Horror!

OK, Mullvad to the rescue, enabling me to continue our little chat from Sweden. That surfaced a few more errors that I was able to correct, but in the end I just kept going round and round in circles over this bit of code:
options = QtWidgets.QFileDialog.Options()
options |= QtWidgets.QFileDialog.DontUseNativeDialog
The suggestions I got from ChatGPT resulted in one of a few errors, quite often TypeError: options(self): first argument of unbound method must have type ‘QFileDialog’. Requests to fix that went back round to options rather than Options but that offered no resolution.
At one point ChatGPT did offer an entirely new program to merge PDF files, but it didn’t include the drag and drop file picker that is the whole point of the exercise.
At this point, I need to do other stuff and so will take a break. To be continued.
Webmentions allow conversations across the web. If you have linked to this post, put your post’s URL below.
Me again :)
That parameter looks like a bit-map thing where you join options together using "|". Does https://stackoverflow.com/questions/74557955/how-to-get-a-directory-path-in-pyqt6-via-qfiledialog help?
Add a comment