[PyQt] calendarwidget and stylesheet examples
Hans-Peter Jansen
hpj at urpla.net
Tue Nov 30 23:52:03 GMT 2010
On Wednesday 01 December 2010, 00:14:14 Albert Cervera i Areny wrote:
> A Dimarts, 30 de novembre de 2010, Hans-Peter Jansen va escriure:
> > Hi Phil,
> >
> > attached are two missing widget examples. I noticed, that you
> > reorganized the other examples, and will try to follow these
> > "guides".
>
> Changing the locale gives the following error:
>
> File "calendarwidget.py", line 71, in localeChanged
>
> self.calendar.setLocale(self.localeCombo.itemData(index).toLocale())
> AttributeError: 'QLocale' object has no attribute 'toLocale'
Upps, sorry. You can just remove 'toLocale', thanks to the QVariant V.2
API.
Pete
More information about the PyQt
mailing list