#๐Ÿ”’ dictory value remove eventhough i don't want it to

7 messages ยท Page 1 of 1 (latest)

latent lion
#

Got following code`: if dialog.exec() == QFileDialog.DialogCode.Accepted: self.paths.__setitem__("excel", dialog.selectedFiles()[0])Problem is that when I go outside of the if block for same reason the value all of the sudden empty eventhough I can see that it should have saved the currect thing.

tired anvilBOT
#

@latent lion

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

knotty nova
latent lion
#

yes. although i just realize a couple of line further i changed checkbox states and at a different point in the program i have a connect to call when they get toggled so it might be that.

#

!close

tired anvilBOT
#
Python help channel closed with !close

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.