Re: [PyQt] PyQt v4.10.1 install Error on Mac OS X

2013-04-22 Thread Melton Low (devl)
+1 Got the same error when using configure-ng.py.  Worked fine with old 
configure.py.


I initially got the following error if I don't specify the location of 
the sip binary located within the python3.3 framework bin folder. The 
location is in my $PATH.  Here is the output:


bigbook:PyQt-mac-gpl-snapshot-4.10.2-e93e243169f6 melton$ python3.3 
configure-ng.py --confirm-license

Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt snapshot-4.10.2-e93e243169f6 (licensed under
the GNU General Public License) for Python 3.3.1 on darwin.
Found the license file pyqt-gpl.sip.
/bin/sh: ./sip: is a directory
Error: './sip -V' did not generate any output.
bigbook:PyQt-mac-gpl-snapshot-4.10.2-e93e243169f6 melton$

Hope this helps.

My configuration is:

OS X 10.8.3
Xcode 4.6.2
Qt 5.0.2
Sip 4.14.6
PyQt 4.10.2 snapshot e93e243169f6

Mel

jrossl...@outlook.com wrote:

python3 configure-ng.py --sip 
/Library/Frameworks/Python.framework/Versions/3.3/bin/sip
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] PyQt v4.10.1 install Error on Mac OS X

2013-04-22 Thread jrosslist
installed and verified working:
 - Mac OS X Version 10.7.5 (Lion)
 - Xcode Version 4.6.1
 - Python 3.3.1 (python-3.3.1-macosx10.6.dmg)
 - Qt5.0.2 (qt-mac-opensource-5.0.2-clang-offline.dmg)
 - SIP v4.14.6 (sip-4.14.6.tar.gz)
 - PyQt v4.10 (PyQt-mac-gpl-4.10.tar.gz) 

This is more of an FYI since I successfully installed v4.10 using configure.py 
and everything is working (after trying the brand new v4.10.1)!

With /Users/jar/Qt5.0.2/5.0.2/clang_64/bin in my PATH I issue the command: 

python3 configure-ng.py --sip 
/Library/Frameworks/Python.framework/Versions/3.3/bin/sip

after accepting the license terms, and after checking to see if several modules 
should be built... it errors out on the module QtDBus:

Checking to see if the QtDBus module should be built...
Error: /Users/jar/Qt5.0.2/5.0.2/clang_64/bin/qmake failed to create a makefile
from cfgtest_QtDBus.pro.

I wonder is this a missing Qt5 environment variable or path thing? An 
interesting note is that w/ v4.10 (configure.py) I do not need to specify the 
location of the SIP on the command line however v4.10.1 (configure-ng.py) 
complains right away if I don't. 

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


[PyQt] QsciScintilla with multiple documents

2013-04-22 Thread Lee Harr
With the QTextEdit there is a separate QTextDocument that can
be swapped in and out to make a multi-document editor.

I am trying to switch over to QsciScintilla but am having trouble
achieving the same effect.

Does the QsciDocument serve the same purpose as QTextDocument?
The online documentation for QsciDocument is very sparse. It says
it is for having multiple QsciScintilla viewing the same document
which is sort of the opposite of what I want.

Should I just be creating multiple QsciScintilla to make the multiple
document system? Or am I missing something more like QTextDocument?


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


[PyQt] Building PyQt to work with Qt5

2013-04-22 Thread James Jong
When building/installing PyQt (from source or using pip), how do I specify
the path to the local Qt5 installation?

I built Qt5 from source
(qt-everywhere-opensource-src-5.0.2.tar.gz)
with the following command:

wget 
http://download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.tar.gz
tar -xvf qt-everywhere-opensource-src-5.0.2.tar.gz

cd qt-everywhere-opensource-src-5.0.2./configure -prefix $PWD/qtbase
-opensource -nomake tests
make -j 4

 If I then cd into qtbase I see:

bin/
dist/
doc/
examples/
imports/
include/
lib/
etc ...

Looking at the PyQt4 installation
instructions
I
could not find a flag or an option to specify the location of the Qt
installation.

Is there a way to tell PyQt4 where to find Qt5?
Note: I left a copy of this thread on StackOverflow:
http://stackoverflow.com/questions/16154402/building-pyqt-to-work-with-qt5

Thanks,

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

Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-22 Thread Phil Thompson
On Mon, 22 Apr 2013 20:34:42 +0200, Detlev Offenbach
 wrote:
> Hello,
> 
> I am observing a strange behavior when using the PyQt4, Python 3.3, Qt5 
> installer when starting eric5. There appears a dialog saying something
> like 
> 'There is no medium in drive D:'. This message appears twice. Selecting 
> Cancel keeps eric going. It does not appear when using the installer for

> Qt4. What is going on here?

Absolutely no idea. 64 bit or 32 bit?

> Some installers seem to be missing the QScintilla.api file.
> 
> Regards,
> Detlev

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


Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-22 Thread Detlev Offenbach
Hello,

I am observing a strange behavior when using the PyQt4, Python 3.3, Qt5 
installer when starting eric5. There appears a dialog saying something like 
'There is no medium in drive D:'. This message appears twice. Selecting 
Cancel keeps eric going. It does not appear when using the installer for 
Qt4. What is going on here?

Some installers seem to be missing the QScintilla.api file.

Regards,
Detlev

On Monday 22 April 2013, 11:43:59 Phil Thompson wrote:
> PyQt v4.10.1 has been released. This contains a couple of new features 
as
> well as the usual bug fixes.
> 
> QtCore.pyqtSetPickleProtocol() and QtCore.pyqtPickleProtocol() have 
been
> added to set and get the protocol used to pickle Python objects when
> serialising them for Qt.
> 
> Added the --resource-suffix option to pyuic4.
> 
> There is a new (optional) build system (configure-ng.py) which will be
> compatible with SIP v5 and will eventually support cross-compilation.
> 
> The Qt5 based Windows installers now include Qt v5.0.2.
> 
> Phil
> ___
> PyQt mailing listPyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt-- 
*Detlev Offenbach*
det...@die-offenbachs.de
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-22 Thread Phil Thompson
On Mon, 22 Apr 2013 11:56:08 +0100, Dmitrijs Ledkovs 
wrote:
> On 22 April 2013 11:43, Phil Thompson 
wrote:
>> PyQt v4.10.1 has been released. This contains a couple of new features
as
>> well as the usual bug fixes.
>>
>> QtCore.pyqtSetPickleProtocol() and QtCore.pyqtPickleProtocol() have
been
>> added to set and get the protocol used to pickle Python objects when
>> serialising them for Qt.
>>
>> Added the --resource-suffix option to pyuic4.
>>
>> There is a new (optional) build system (configure-ng.py) which will be
>> compatible with SIP v5 and will eventually support cross-compilation.
>>
>> The Qt5 based Windows installers now include Qt v5.0.2.
>>
>> Phil
> 
> 
> In my experience configure-ng.py was required to do a PyQt build
> against Qt5 built with the -no-deprecated flag.

I'm not sure what you mean. I've just found a bug in the handling of
--no-deprecated in configure-ng.py which means that it's value is always
false. configure.py should be fine however.

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


Re: [PyQt] ANN: PyQt v4.10.1 Released

2013-04-22 Thread Dmitrijs Ledkovs
On 22 April 2013 11:43, Phil Thompson  wrote:
> PyQt v4.10.1 has been released. This contains a couple of new features as
> well as the usual bug fixes.
>
> QtCore.pyqtSetPickleProtocol() and QtCore.pyqtPickleProtocol() have been
> added to set and get the protocol used to pickle Python objects when
> serialising them for Qt.
>
> Added the --resource-suffix option to pyuic4.
>
> There is a new (optional) build system (configure-ng.py) which will be
> compatible with SIP v5 and will eventually support cross-compilation.
>
> The Qt5 based Windows installers now include Qt v5.0.2.
>
> Phil


In my experience configure-ng.py was required to do a PyQt build
against Qt5 built with the -no-deprecated flag.

Regards,

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


[PyQt] ANN: PyQt v4.10.1 Released

2013-04-22 Thread Phil Thompson
PyQt v4.10.1 has been released. This contains a couple of new features as
well as the usual bug fixes.

QtCore.pyqtSetPickleProtocol() and QtCore.pyqtPickleProtocol() have been
added to set and get the protocol used to pickle Python objects when
serialising them for Qt.

Added the --resource-suffix option to pyuic4.

There is a new (optional) build system (configure-ng.py) which will be
compatible with SIP v5 and will eventually support cross-compilation.

The Qt5 based Windows installers now include Qt v5.0.2.

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


Re: [PyQt] QsciScintilla Lexer disappears?

2013-04-22 Thread Vincent Vande Vyvre

Le 22/04/2013 09:52, Vincent Vande Vyvre a écrit :

Le 22/04/2013 02:51, Lee Harr a écrit :
I am trying to use QsciScintilla in a project but I am having some 
trouble

with the Lexer. I don't understand why this code shows the lexer at
the end of __init__ but when clicking in the margin it shows None.

Any thoughts?



import sys
from PyQt4.QtCore import SIGNAL
from PyQt4.QtGui import QApplication
from PyQt4.Qsci import QsciScintilla, QsciLexerPython


class SimplePythonEditor(QsciScintilla):
 def __init__(self, parent=None):
 super(SimplePythonEditor, self).__init__(parent)

 self.setMarginSensitivity(1, True)
 self.connect(self,
 SIGNAL('marginClicked(int, int, Qt::KeyboardModifiers)'),
 self.on_margin_clicked)

 lexer = QsciLexerPython()
 self.setLexer(lexer)
 print self.lexer()

 def on_margin_clicked(self, nmargin, nline, modifiers):
 print self.lexer()


if __name__ == "__main__":
 app = QApplication(sys.argv)
 editor = SimplePythonEditor()
 editor.show()
 app.exec_()
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Remove the parenthesis of 'print self.lexer'


Oops, I'm wrong, it's not the same object 

--
Vincent V.V.
Oqapy  . Qarte 
 . PaQager 

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

Re: [PyQt] QsciScintilla Lexer disappears?

2013-04-22 Thread Vincent Vande Vyvre

Le 22/04/2013 02:51, Lee Harr a écrit :

I am trying to use QsciScintilla in a project but I am having some trouble
with the Lexer. I don't understand why this code shows the lexer at
the end of __init__ but when clicking in the margin it shows None.

Any thoughts?



import sys
from PyQt4.QtCore import SIGNAL
from PyQt4.QtGui import QApplication
from PyQt4.Qsci import QsciScintilla, QsciLexerPython


class SimplePythonEditor(QsciScintilla):
 def __init__(self, parent=None):
 super(SimplePythonEditor, self).__init__(parent)

 self.setMarginSensitivity(1, True)
 self.connect(self,
 SIGNAL('marginClicked(int, int, Qt::KeyboardModifiers)'),
 self.on_margin_clicked)

 lexer = QsciLexerPython()
 self.setLexer(lexer)
 print self.lexer()

 def on_margin_clicked(self, nmargin, nline, modifiers):
 print self.lexer()


if __name__ == "__main__":
 app = QApplication(sys.argv)
 editor = SimplePythonEditor()
 editor.show()
 app.exec_()
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Remove the parenthesis of 'print self.lexer'

--
Vincent V.V.
Oqapy  . Qarte 
 . PaQager 

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