<div dir="ltr"><div>It uses QLocale.countriesForLanguage, which is now obsolete [1]. It needs to be adapted for QLocale::matchingLocales.</div><div><br></div><div>$ ./calendarwidget.py </div><div>Traceback (most recent call last):</div><div> File "./calendarwidget.py", line 414, in <module></div><div> window = Window()</div><div> File "./calendarwidget.py", line 58, in __init__</div><div> self.createGeneralOptionsGroupBox()</div><div> File "./calendarwidget.py", line 191, in createGeneralOptionsGroupBox</div><div> countries = QLocale.countriesForLanguage(lang)</div><div>AttributeError: type object 'QLocale' has no attribute 'countriesForLanguage'</div><div><br></div><div>[1]: <a href="http://doc.qt.io/qt-5/qlocale-obsolete.html">http://doc.qt.io/qt-5/qlocale-obsolete.html</a></div><div><br></div><br>
</div>