<div dir="ltr">Hello everyone,<div><br></div><div>I wrote a PyQt5 application that used to work on both Linux (Ubuntu 16.04 and 17.04), and on Mac (OS X 10.9). Our IT department recently upgraded our Mac laptops to Sierra (OS X 10.12.5). This appears to have broken my program on the Mac. I have reduced the problem to a minimal example. Attempting to set the Accept Mode on the QFileDialog makes it fail to render. Here is the code:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>import sys</div></div><div><div>from PyQt5.QtWidgets import QApplication, QWidget, QFileDialog</div></div><div><div><br></div></div><div><div>class MainWindow(QWidget):</div></div><div><div> </div></div><div><div> def __init__(self):</div></div><div><div> super().__init__()</div></div><div><div> self.show() </div></div><div><div> dialog = QFileDialog(self)</div></div><div><div> dialog.setAcceptMode(QFileDialog.AcceptSave) # <-- Problem is here</div></div><div><div> dialog.show()</div></div><div><div><br></div></div><div><div>app = QApplication(sys.argv)</div></div><div><div>w = MainWindow()</div></div><div><div>sys.exit(app.exec_())</div></div></blockquote><div><div><br></div><div>Of course, the QFileDialog is useless if I can't actually use it... If anyone has any suggestions or recommendations, I would greatly appreciate them. Thanks!</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><b>John J. Ladasky Jr., Ph.D.</b><div><b>Research Scientist</b></div><div><b>International Technological University</b></div><div><b>2711 N. First St, San Jose, CA 95134 USA</b></div></div></div>
</div></div>