Re: [PyQt] 2 Updates for the modeltest in PyQt4

2011-02-21 Thread Andreas Pakulat
On 20.02.11 23:52:13, Wolfgang Rohdewald wrote: On Sonntag 20 Februar 2011, Andreas Pakulat wrote: I didn't test yet against an actual model, so might have done something wrong in porting. yep. lists have no add, it is append Heh, worked too much with sets lately. I didn't test

[PyQt] PyQt Windows Installers for Python v3.2 Available

2011-02-21 Thread Phil Thompson
PyQt 32 and 64-bit Windows installers for Python v3.2 are now available from the download page. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Extra blank line on pyuic4 generated code (4.8.3)

2011-02-21 Thread Phil Thompson
On Sat, 12 Feb 2011 18:31:49 +0800, Kelvin U.V kelvin@gmail.com wrote: Hi , I find the pyuic4 4.8.3 will generat more newline characters in each line. 4.8.1 doesn't have this issue. Here is a temporary solution for this issue. def _generate(self): Generate the Python

[PyQt] Fwd: How to convert days to year,month days

2011-02-21 Thread KONTRA, Gergely
Why not use datetime.timedelta? [interactive console] import datetime a = datetime.datetime.now() b = datetime.datetime.now() b-a datetime.timedelta(0, 5, 156000) +-[ Gergely Kontra pihent...@gmail.com ]--+ |   | | 

Re: [PyQt] KeepReference in constructors for wrapped instances

2011-02-21 Thread Phil Thompson
On Tue, 15 Feb 2011 14:13:42 +0100, Giovanni Bajo ra...@develer.com wrote: Hi Phil, given the following (pseudo) sip file: === class Manager { ... }; class User { public: User(Manager * /KeepReference=0/); void

[PyQt] how to mark dates in QCalenderwidget with RED color

2011-02-21 Thread ad3d
hi guys, i am trying to use QCalenderWidget in my program to show public holidays i want to mark some dates RED same like saturday sunday marked by qt. i am using PyQt4 How can i do dis?? Any suggestion Thanks in advance ad3d -- View this message in context:

Re: [PyQt] how to mark dates in QCalenderwidget with RED color

2011-02-21 Thread Hans-Peter Jansen
On Monday 21 February 2011, 19:53:32 ad3d wrote: hi guys, i am trying to use QCalenderWidget in my program to show public holidays i want to mark some dates RED same like saturday sunday marked by qt. i am using PyQt4 How can i do dis?? Any suggestion Check out the calendarwidget

[PyQt] sip.cast changes behaviour of == operator?

2011-02-21 Thread Andreas Pakulat
Hi, still working on the modeltest.py code, picking up one of the older threads about it: http://www.opensubscriber.com/message/pyqt@riverbankcomputing.com/10335500.html As far as I can see the reason for this is the casting done at the start of the ModelTest class. It looks like sip.cast

Re: [PyQt] 2 Updates for the modeltest in PyQt4

2011-02-21 Thread Andreas Pakulat
On 20.02.11 23:52:13, Wolfgang Rohdewald wrote: On Sonntag 20 Februar 2011, Andreas Pakulat wrote: I didn't test yet against an actual model, so might have done something wrong in porting. yep. lists have no add, it is append I didn't test either but pylint did Where do you

Re: [PyQt] sip.cast changes behaviour of == operator?

2011-02-21 Thread Phil Thompson
On Mon, 21 Feb 2011 21:30:28 +0100, Andreas Pakulat ap...@gmx.de wrote: Hi, still working on the modeltest.py code, picking up one of the older threads about it: http://www.opensubscriber.com/message/pyqt@riverbankcomputing.com/10335500.html As far as I can see the reason for this is the

Re: [PyQt] 2 Updates for the modeltest in PyQt4

2011-02-21 Thread Wolfgang Rohdewald
On Montag 21 Februar 2011, Andreas Pakulat wrote: Now did a closer look at the diff between that version of mine, the attached 3 patches (one is the add vs. append change) contain the changes. I made a few bug fixes and I believe I mailed them back to the author but now that I check again

Re: [PyQt] Extra blank line on pyuic4 generated code (4.8.3)

2011-02-21 Thread Kelvin U.V
On Tue, Feb 22, 2011 at 1:13 AM, Phil Thompson p...@riverbankcomputing.comwrote: On Sat, 12 Feb 2011 18:31:49 +0800, Kelvin U.V kelvin@gmail.com wrote: Hi , I find the pyuic4 4.8.3 will generat more newline characters in each line. 4.8.1 doesn't have this issue. Here is a