[PyQt] Phonon with PyQt and Windows 7?

2013-04-21 Thread Itay Brandes
Hey,
I'm using a Phonon based player with my app, that plays mp3 files from the
web (by passing a QUrl Phonon.MediaSource).
It works fine with Windows XP, but with Windows 7 it sometimes works and
sometimes doesn't do a thing.

I'm using latest PyQt version on Python 2.7.3.

Any ideas what could be the problem? How can I debug it?
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Using self.tr() with python string formatting

2012-08-03 Thread Itay Brandes
right now for using self.tr() with python string formatting, i do the
following thing:

unicode(self.tr("%d out of %d completed")) % (i, n)

is there a way to somehow combine the unicode & self.tr, or make them look
shorter?
because calling unicode(self.tr()) on every shown string makes a lot of
code noise

Thanks.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Creating QSplashScreen with a .gif animation

2012-07-20 Thread Itay Brandes
DavidBoddie <http://www.diotavelli.net/PyQtWiki/DavidBoddie> from the #pyqt
irc channel has come with a solution:
http://www.diotavelli.net/PyQtWiki/Movie%20splash%20screen

Thank you all.

On Fri, Jul 20, 2012 at 3:28 PM, Itay Brandes  wrote:

> Then what's the right approach to the solution?
>
>
> On Fri, Jul 20, 2012 at 3:15 PM, Hans-Peter Jansen  wrote:
>
>> Am Friday 20 July 2012 13:55:20 schrieb Itay Brandes:
>> > Here they are.
>> > As you can see, only the first frame is shown, and the others won't
>> > get painted.
>>
>> That's for sure, since you're using a QPixmap to display the gif.
>> That guy did his own QSplashScreen class, where he loads the gif with
>> QMovie, but that approach might lack, too, since QMovie needs the event
>> loop running, which is usually not the case during initialization.
>>
>> Oh well.
>>
>> Pete
>>
>>
>> > Thanks.
>> >
>> > On Fri, Jul 20, 2012 at 10:52 AM, Hans-Peter Jansen 
>> wrote:
>> > > Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes:
>> > > > Hey,
>> > > > QtGui.QSplashScreen allows to use a static image source for the
>> > > > splash screen, but does not support .gif animations.
>> > > >
>> > > > How can I bind a QtGui.QMovie to the QtGui.QSplashScreen?
>> > > > There are many snap-ins in C++, like
>> > > > this<http://www.qtcentre.org/threads/18747-QSplashScreen-loading-
>> > > >icon ?p=92814#post92814>, but I'm unfimiliar with them, and fail
>> > > > to convert them to python correctly.
>> > >
>> > > Seems pretty straight forward. Start over and post your stub
>> > > (including a link to the animated gif..).
>> > >
>> > > Pete
>> > > ___
>> > > PyQt mailing listPyQt@riverbankcomputing.com
>> > > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>>
>>
>
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Creating QSplashScreen with a .gif animation

2012-07-20 Thread Itay Brandes
Then what's the right approach to the solution?

On Fri, Jul 20, 2012 at 3:15 PM, Hans-Peter Jansen  wrote:

> Am Friday 20 July 2012 13:55:20 schrieb Itay Brandes:
> > Here they are.
> > As you can see, only the first frame is shown, and the others won't
> > get painted.
>
> That's for sure, since you're using a QPixmap to display the gif.
> That guy did his own QSplashScreen class, where he loads the gif with
> QMovie, but that approach might lack, too, since QMovie needs the event
> loop running, which is usually not the case during initialization.
>
> Oh well.
>
> Pete
>
>
> > Thanks.
> >
> > On Fri, Jul 20, 2012 at 10:52 AM, Hans-Peter Jansen 
> wrote:
> > > Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes:
> > > > Hey,
> > > > QtGui.QSplashScreen allows to use a static image source for the
> > > > splash screen, but does not support .gif animations.
> > > >
> > > > How can I bind a QtGui.QMovie to the QtGui.QSplashScreen?
> > > > There are many snap-ins in C++, like
> > > > this<http://www.qtcentre.org/threads/18747-QSplashScreen-loading-
> > > >icon ?p=92814#post92814>, but I'm unfimiliar with them, and fail
> > > > to convert them to python correctly.
> > >
> > > Seems pretty straight forward. Start over and post your stub
> > > (including a link to the animated gif..).
> > >
> > > Pete
> > > ___
> > > PyQt mailing listPyQt@riverbankcomputing.com
> > > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Creating QSplashScreen with a .gif animation

2012-07-20 Thread Itay Brandes
Here they are.
As you can see, only the first frame is shown, and the others won't get
painted.
Thanks.

On Fri, Jul 20, 2012 at 10:52 AM, Hans-Peter Jansen  wrote:

> Am Thursday 19 July 2012 19:46:39 schrieb Itay Brandes:
> > Hey,
> > QtGui.QSplashScreen allows to use a static image source for the
> > splash screen, but does not support .gif animations.
> >
> > How can I bind a QtGui.QMovie to the QtGui.QSplashScreen?
> > There are many snap-ins in C++, like
> > this<http://www.qtcentre.org/threads/18747-QSplashScreen-loading-icon
> >?p=92814#post92814>, but I'm unfimiliar with them, and fail to convert
> > them to python correctly.
>
> Seems pretty straight forward. Start over and post your stub (including
> a link to the animated gif..).
>
> Pete
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
<>

animating_qsplashscreen_test.py
Description: Binary data
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Creating QSplashScreen with a .gif animation

2012-07-19 Thread Itay Brandes
Hey,
QtGui.QSplashScreen allows to use a static image source for the splash
screen, but does not support .gif animations.

How can I bind a QtGui.QMovie to the QtGui.QSplashScreen?
There are many snap-ins in C++, like
this,
but I'm unfimiliar with them, and fail to convert them to python correctly.

Thanks.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QStateMachine won't start

2012-07-08 Thread Itay Brandes
I'm now trying to change the QRectF of the button widget, but it seems like
it won't move from it's original location.
This is what I'm trying to do:

s1.assignProperty(self.label, "text", "in state 1")
s1.assignProperty(self.button1, "geometry", QtCore.QRectF(20, 20,
100, 50))

s2.assignProperty(self.label, "text", "in state 2")
s2.assignProperty(self.button1, "geometry", QtCore.QRectF(10, 10,
100, 50))

s3.assignProperty(self.label, "text", "in state 3")
s3.assignProperty(self.button1, "geometry", QtCore.QRectF(0, 0,
100, 50))

where am i wrong this time? thanks :)


On Sun, Jul 8, 2012 at 10:00 AM, Itay Brandes  wrote:

> Thanks!
>
>
> On Sun, Jul 8, 2012 at 9:30 AM, Vincent Vande Vyvre <
> vincent.vandevy...@swing.be> wrote:
>
>> On 08/07/12 00:37, Itay Brandes wrote:
>> > Hey,
>> > I'm trying to start a QStateMachine and seem to fail.
>> >
>> > Here is my code: http://pastebin.com/mQmyva9K
>> > Where am i wrong?
>> >
>> > Thanks.
>> >
>> >
>> > ___
>> > PyQt mailing listPyQt@riverbankcomputing.com
>> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>> You must keep a reference of the machine.
>> self.machine = QtCore.QStateMachine()
>>
>> --
>> Vincent V.V.
>> Oqapy <https://launchpad.net/oqapy> . Qarte+7
>> <https://launchpad.net/qarte+7> . PaQager <https://launchpad.net/paqager>
>>
>> ___
>> PyQt mailing listPyQt@riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
>
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QStateMachine won't start

2012-07-08 Thread Itay Brandes
Thanks!

On Sun, Jul 8, 2012 at 9:30 AM, Vincent Vande Vyvre <
vincent.vandevy...@swing.be> wrote:

> On 08/07/12 00:37, Itay Brandes wrote:
> > Hey,
> > I'm trying to start a QStateMachine and seem to fail.
> >
> > Here is my code: http://pastebin.com/mQmyva9K
> > Where am i wrong?
> >
> > Thanks.
> >
> >
> > ___
> > PyQt mailing listPyQt@riverbankcomputing.com
> > http://www.riverbankcomputing.com/mailman/listinfo/pyqt
> You must keep a reference of the machine.
> self.machine = QtCore.QStateMachine()
>
> --
> Vincent V.V.
> Oqapy <https://launchpad.net/oqapy> . Qarte+7
> <https://launchpad.net/qarte+7> . PaQager <https://launchpad.net/paqager>
>
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QStateMachine won't start

2012-07-07 Thread Itay Brandes
Hey,
I'm trying to start a QStateMachine and seem to fail.

Here is my code: http://pastebin.com/mQmyva9K
Where am i wrong?

Thanks.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Possible bug with QtCore.QPropertyAnimation and QAxContainer.QAxWidget

2012-06-17 Thread Itay Brandes
There is a possible bug when trying to use *QAxContainer.QAxWidget*, *
QtGui.QGraphicsOpacityEffect* and *QtCore.QPropertyAnimation* in the same
application.

This happens when trying to animate a widget's opacity (creating a "fade
out" effect).
The animation won't update correctly if a QAxWidget is present somewhere in
the same window.
The bug can be seen here:
http://itayb.hostzi.com/eventloop_doesnt_update.avi

A test case that causes the weird behavior is attached.

Thanks!


animation_test_case.py
Description: Binary data
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt