Re: [PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

2011-12-28 Thread Phil Thompson
On Wed, 28 Dec 2011 15:18:05 +0100, Nico Dufort  wrote:
> Hello Phil,
> 
> I did a test with xubuntu on a virtual machine, and I ran into the exact
> same error.  I can try on a non-ubuntu/non-debian based environment when
I
> have more time, but I would want to believe that someone else got this
> version to build.
> 
> 
> All my files were downloaded from their respective websites:
> 
> Python 2.6.7: http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tgz
> Sip 4.13.1:
>
http://www.riverbankcomputing.com/static/Downloads/sip4/sip-4.13.1.tar.gz
> Qt 4.8.0:
>
ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.8.0.tar.gz
> PyQt 4.9:
>
http://www.riverbankcomputing.com/static/Downloads/PyQt4/PyQt-x11-gpl-4.9.tar.gz
> 
> Just for the sake of trying, I re-downloaded everything for both test
> environments, but that made no difference.  I do not think corruption is
an
> issue.  Any suggestion as to what might be worth trying next?
> I got a hold of an older build of PyQt that meets my needs and works
with
> Nuke, but I really would like to be able to build this one properly on
my
> own, for the sake of getting it to work. =)

Works fine for me under kubuntu. If this was a general problem I'd expect
somebody else to have mentioned it by now.

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


Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Phil Thompson
On Wed, 28 Dec 2011 19:47:29 +0100, Detlev Offenbach
 wrote:
> Am 28.12.2011 um 19:34 schrieb Phil Thompson:
> 
>> On Wed, 28 Dec 2011 15:29:00 +0100, Detlev Offenbach
>>  wrote:
>>> Hi,
>>> 
>>> do you have a short recipe on how to get DBus on Mac?
>> 
>> Install MacPorts.
>> 
>> Install dbus...
>> 
>> sudo port install dbus
>> 
>> When you run Qt's configure pass it the -dbus-linked flag.
>> 
> 
> Does this work with the .dmg installer as well? Does this recognize the
> installed DBus?

No idea - my guess would be no.

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


Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Detlev Offenbach

Am 28.12.2011 um 19:34 schrieb Phil Thompson:

> On Wed, 28 Dec 2011 15:29:00 +0100, Detlev Offenbach
>  wrote:
>> Hi,
>> 
>> do you have a short recipe on how to get DBus on Mac?
> 
> Install MacPorts.
> 
> Install dbus...
> 
> sudo port install dbus
> 
> When you run Qt's configure pass it the -dbus-linked flag.
> 

Does this work with the .dmg installer as well? Does this recognize the 
installed DBus?

Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Phil Thompson
On Wed, 28 Dec 2011 15:29:00 +0100, Detlev Offenbach
 wrote:
> Hi,
> 
> do you have a short recipe on how to get DBus on Mac?

Install MacPorts.

Install dbus...

sudo port install dbus

When you run Qt's configure pass it the -dbus-linked flag.

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


Re: [PyQt] Instant translation on PyQt 4.8.6

2011-12-28 Thread admin

  
  
On 21/12/2011 07:12 م, Phil Thompson wrote:

  On Wed, 21 Dec 2011 19:03:56 +0200, ad...@mbnoimi.net wrote:

  
On 10/12/2011 03:15 م, Phil Thompson wrote:  
On Sat, 10 Dec 2011 12:55:09 +0200, ad...@mbnoimi.net [1] wrote:

On 10/12/2011 12:47 م, Phil Thompson wrote: I think there might be a
pyuic4 regression related to retranslation. What version were you using
that seemed to work? Can you send me a .ui file that seems to have the
problem? 

 By the way, I didn't face this problem with C++/Qt for same Qt version

Thanks - will be fixed in tonight's snapshot.
  Did you fixed it? if yes is there any binary distro (I still unable to
build snapshot on Windows :-( )?

  
  
I said I'd fixed it. There will be a new binary release later this week.

Phil


This issue still exist in current version
  (PyQt-Py2.7-x86-gpl-4.9-1)


-- 
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
  

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

[PyQt] PyQt bug with Qt 4.8.0?

2011-12-28 Thread Linos
Hi,
after Qt upgrade to 4.8.0 in my machine i have been getting problems 
with the
painting of vertical headers in QTableViews with a QSqlQueryModel that refresh
on event (for example after tab change).

I have created a testcase because i wanted to report the bug to Qt bug tracker
but i can't reproduce it in c++ so i have created a testcase in python with the
problem and the equivalent code in c++ that not reproduces the problem, maybe i
am missing something but it seems like a but in PyQt?

I am using now PyQt 4.9 but i had this problem with the previous PyQt version as
well, i am using arch x86_64 and python2.7

Regards,
Miguel Angel.


testcase.rar
Description: application/rar
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Detlev Offenbach
Hi,

do you have a short recipe on how to get DBus on Mac?

Detlev

Am 28.12.2011 um 13:55 schrieb Phil Thompson:

> On Wed, 28 Dec 2011 13:41:08 +0100, Detlev Offenbach
>  wrote:
>> Hello,
>> 
>> I tried using Qt 4.8.0 on Mac as well. Trying to start Qt Designer
>> resulted in a crash (Seg Fault). According to the Qt bug tracker their
> is
>> an issue related to dbus not being present on Mac. I guess, that one has
> to
>> install dubs (don't know yet how) or continue to use Qt 4.7.4. The last
>> solution did the trick for me and made eric4/5 work again.
> 
> I have DBus installed on Mac so that might explain why I haven't seen a
> problem.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

2011-12-28 Thread Nico Dufort
Hello Phil,

I did a test with xubuntu on a virtual machine, and I ran into the exact
same error.  I can try on a non-ubuntu/non-debian based environment when I
have more time, but I would want to believe that someone else got this
version to build.


All my files were downloaded from their respective websites:

Python 2.6.7: http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tgz
Sip 4.13.1:
http://www.riverbankcomputing.com/static/Downloads/sip4/sip-4.13.1.tar.gz
Qt 4.8.0:
ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.8.0.tar.gz
PyQt 4.9:
http://www.riverbankcomputing.com/static/Downloads/PyQt4/PyQt-x11-gpl-4.9.tar.gz

Just for the sake of trying, I re-downloaded everything for both test
environments, but that made no difference.  I do not think corruption is an
issue.  Any suggestion as to what might be worth trying next?
I got a hold of an older build of PyQt that meets my needs and works with
Nuke, but I really would like to be able to build this one properly on my
own, for the sake of getting it to work. =)

Thanks in advance.
nico

On Tue, Dec 27, 2011 at 12:04 PM, Phil Thompson  wrote:

> On Tue, 27 Dec 2011 11:55:57 +0100, Nico Dufort  wrote:
> > Hi Phil,
> >
> > Thanks for the quick answer.  It does return the correct sip (4.13.1),
> and
> > the output of the configure reported the correct version as well.
> >
> > I just noticed a few errors from the output, but I do not think that
> would
> > be related to my problem (sorry for the long output).  Anything I should
> > worry about, or that I may be missing?
> > I am installing Ubuntu on virtualbox to see if it's my environment.
> >
> > Thanks. nico.
> >
> > nico@slimline:~/Downloads/py4nk/PyQt-x11-gpl-4.9$
> > /opt/python-2.6.7/bin/python2.6 ./configure.py -q
> > /usr/local/Trolltech/Qt-4.8.0/bin/qmake -w
> > Determining the layout of your Qt installation...
> > /usr/local/Trolltech/Qt-4.8.0/bin/qmake -o qtdirs.mk qtdirs.pro
> > make -f qtdirs.mk
> > g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB
> > -DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/linux-g++-64 -I.
> > -I/usr/local/Trolltech/Qt-4.8.0/include/QtCore
> > -I/usr/local/Trolltech/Qt-4.8.0/include -I. -o qtdirs.o qtdirs.cpp
> > g++ -m64 -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -o qtdirs
> > qtdirs.o-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread
> > ./qtdirs
> > This is the GPL version of PyQt 4.9 (licensed under the GNU General
> Public
> > License) for Python 2.6.7 on linux3.
> >
> > Type '2' to view the GPL v2 license.
> > Type '3' to view the GPL v3 license.
> > Type 'yes' to accept the terms of the license.
> > Type 'no' to decline the terms of the license.
> >
> > Do you accept the terms of the license? yes
> > Found the license file pyqt-gpl.sip.
> > Checking to see if the QtGui module should be built...
> > g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I.
> > -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
> > -I/usr/local/Trolltech/Qt-4.8.0/include/QtGui
> > -I/usr/local/Trolltech/Qt-4.8.0/include -I/usr/X11R6/include -m64 -pipe
> -O2
> > -w -D_REENTRANT cfgtest_QtGui.cpp -o cfgtest_QtGui
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64  -Wl,-O1
> > -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -lQtCore
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lXext -lX11 -lm -lpthread
> > Checking to see if the QtHelp module should be built...
> > g++ -DQT_NO_DEBUG -I. -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
> > -I/usr/local/Trolltech/Qt-4.8.0/include/QtHelp
> > -I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
> > cfgtest_QtHelp.cpp -o cfgtest_QtHelp -L/usr/local/Trolltech/Qt-4.8.0/lib
> >  -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtHelp
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -lQtSql
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui -L/usr/X11R6/lib64
> -lQtNetwork
> > -lQtCore -lpthread -lpthread
> > Checking to see if the QtMultimedia module should be built...
> > g++ -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -I.
> > -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
> > -I/usr/local/Trolltech/Qt-4.8.0/include/QtMultimedia
> > -I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
> > cfgtest_QtMultimedia.cpp -o cfgtest_QtMultimedia
> > -L/usr/local/Trolltech/Qt-4.8.0/lib  -Wl,-O1
> > -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtMultimedia
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui
> > -L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -lQtCore
> -lpthread
> > -lpthread
> > Checking to see if the QtNetwork module should be built...
> > g++ -DQT_NO_DEBUG -DQT_NETWORK_LIB -I.
> > -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
> > -I/usr/local/Trolltech/Qt-4.8.0/include/QtNetwork
> > -I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
> > cfgtest_QtNetwork.cpp -o cfgtest_QtNetwork
> > -L/usr/local/Trolltech/Qt-4.8.0/lib  -Wl,-O1
> > -Wl

Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Phil Thompson
On Wed, 28 Dec 2011 13:41:08 +0100, Detlev Offenbach
 wrote:
> Hello,
> 
> I tried using Qt 4.8.0 on Mac as well. Trying to start Qt Designer
> resulted in a crash (Seg Fault). According to the Qt bug tracker their
is
> an issue related to dbus not being present on Mac. I guess, that one has
to
> install dubs (don't know yet how) or continue to use Qt 4.7.4. The last
> solution did the trick for me and made eric4/5 work again.

I have DBus installed on Mac so that might explain why I haven't seen a
problem.

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


Re: [PyQt] My app crashed every time after upgrading to PyQt4.9

2011-12-28 Thread Detlev Offenbach
Hello,

I tried using Qt 4.8.0 on Mac as well. Trying to start Qt Designer resulted in 
a crash (Seg Fault). According to the Qt bug tracker their is an issue related 
to dbus not being present on Mac. I guess, that one has to install dubs (don't 
know yet how) or continue to use Qt 4.7.4. The last solution did the trick for 
me and made eric4/5 work again.

Regards,
Detlev

Am 27.12.2011 um 16:50 schrieb zw g:

> And, my previous compiled Eric4.4.19 can not fired up either which was 
> running perfectly well under PyQt4.8.6.
> 
> As a reference, here is the error info:
> 
> 
> 
> 
> 2011-12-27, 23:15:00
> 
> : 
> QsciLexerBash(QObject parent=None): argument 1 has unexpected type 'Terminal'
> 
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/eric4/eric4.py",
>  line 294, in 
> main()
>   File 
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/eric4/eric4.py",
>  line 291, in main
> raise err
> 
> 
> Version Numbers:
>   Python 2.7.2
>   Qt 4.8.0
>   PyQt4 4.9
>   sip 4.13.1
>   QScintilla 2.6
>   eric4 4.4.19 (r4205)
> 
> Platform: darwin
> 2.7.2 (default, Nov 22 2011, 23:21:04) 
> [GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.10.1)]
> 
> 
> 
> 
> 
> 
> 
> On Tue, Dec 27, 2011 at 11:45 PM, zw g  wrote:
> Oh, i forgot to mention that, the last information leave in the Terminal.app 
> is:
> 
> Segmentation fault: 11
> 
> Hope it helps.
> 
> 
> 
> On Tue, Dec 27, 2011 at 11:44 PM, zw g  wrote:
> Dear List,
> 
> 
> I need help.
> 
> My app behaved perfect well under Python2.7.2 + PyQt4.8.6 + SIP 4.13 + Mac OS 
> X 10.7.2.
> 
> After the new PyQt4.9 released, i compiled SIP4.13.1 and PyQt4.9 in the first 
> time. (I like to be latest state!)
> Now everything is a mess.
> 
> Every time i fired up my app in the Terminal.app like this:
> 
> $python my_app.py
> 
> I got the crash window popped up, i copied the content of the crash 
> information and attached it in this mail.
> Hope someone could help.
> 
> Thanks.
> 
> Gui
> 
> 
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Detlev Offenbach
det...@die-offenbachs.de





signature.asc
Description: Message signed with OpenPGP using GPGMail
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] D-Bus support for Windows

2011-12-28 Thread Phil Thompson
On Wed, 28 Dec 2011 11:30:11 +0100, Lukas Hetzenecker
 wrote:
> Hello Phil and all interested community members,
> 
> I'd like to ask you if you have any plans to add support for Windows
> to your D-Bus mainloop implementation.
> 
> Some time ago there was a discussion on the dbus mailing list:
> http://web.archiveorange.com/archive/v/2mxmYng5gCA0MCJamGh9
> 
> The D-Bus server was already ported to Windows and is used
> successfully by some applications (e.g. the KDE project).
> The only thing that's missing now is any python support (glib also
> isn't ported yet). I tried to copy the dbus/ directory from
> the Linux source code to the source for Windows and it compiled,
> although i couldn't get it to work (more information about
> that is in the thread mentioned above).
> 
> Is there any chance that we could get this great IPC framework
> supported on all major operating systems?

If you can build and run C++ Qt DBus applications under Windows then the
new QtDBus module in PyQt v4.9 should work (if you are using Qt v4.7 or
later). You will need to change configure.py so that it tries to build
QtDBus under Windows - the change needed is obvious if you search for
"QtDBus".

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


[PyQt] D-Bus support for Windows

2011-12-28 Thread Lukas Hetzenecker
Hello Phil and all interested community members,

I'd like to ask you if you have any plans to add support for Windows
to your D-Bus mainloop implementation.

Some time ago there was a discussion on the dbus mailing list:
http://web.archiveorange.com/archive/v/2mxmYng5gCA0MCJamGh9

The D-Bus server was already ported to Windows and is used
successfully by some applications (e.g. the KDE project).
The only thing that's missing now is any python support (glib also
isn't ported yet). I tried to copy the dbus/ directory from
the Linux source code to the source for Windows and it compiled,
although i couldn't get it to work (more information about
that is in the thread mentioned above).

Is there any chance that we could get this great IPC framework
supported on all major operating systems?

Greetings,
Lukas
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] Scrollbar doesnt appear in QTabWidget

2011-12-28 Thread akash
Following is the way i am trying to trying to create the app, but scrollbar
is not comming in the tab widget.

self.centralwidget = QtGui.QWidget(MainWindow)
self.main_account = QtGui.QFrame(self.centralwidget)
self.tabWidget = QtGui.QTabWidget(self.main_account)

In self.tabWidget, I have many labels and text Ctrls and other controls and
the page is too long. Its goes below the  screen and scroll doesnt appear.

Can someone help me to sort this out? Or is the way I am doing is wrong?

--
View this message in context: 
http://python.6.n6.nabble.com/Scrollbar-doesnt-appear-in-QTabWidget-tp2368423p2368423.html
Sent from the PyQt mailing list archive at Nabble.com.
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt