Re: [PyQt] Qt, PyQt and spelling

2010-06-20 Thread Roberto Alsina
On Sunday 20 June 2010 15:19:49 projet...@club-internet.fr wrote:
> >>> It's  easy to make pyenchant work with pyqt. Check this out:
> >>>  http://code.google.com/p/marave/source/browse/#svn/trunk/marave/editor
> 
> The  problem is that this project is a small one and doesn't work on Snow 
> Leopard, even after enchant has been installed via MacPort.
> 
> >>>  It's a generic "editor" widget, supports spellchecking via pyenchant 
> >>>  and
> >>> 
> >>> syntax highlighting via qt-source-highlight plus  gives you
> >>> search/replace/go to line widgets and a few  extra goodies.
> 
> That's look good but I can test it.
> 
> Every  kind of help is welcomed.

Weird, I have at least three reports of people using it in Mac.

BTW: this is not about marave, it's just about the editor folder, it's a 
generic PyQt widget.

As long as you can do "import enchant" and "from PyQt4 import QtGui" in the 
same python, the spellchecking part should work.

In fact, you can just run "python spelltextedit.py" and you should get a 
simple text editing window with line numbers and spellchecker enabled. 
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Qt, PyQt and spelling

2010-06-20 Thread projetmbc
>>> It's  easy to make pyenchant work with pyqt. Check this out:
>>>  http://code.google.com/p/marave/source/browse/#svn/trunk/marave/editor

The  problem is that this project is a small one and doesn't work on Snow  
Leopard, even after enchant has been installed via MacPort.

>>>  It's a generic "editor" widget, supports spellchecking via pyenchant  and 
>>> syntax highlighting via qt-source-highlight plus  gives you 
>>> search/replace/go 
>>> to line widgets and a few  extra goodies. 

That's look good but I can test it.

Every  kind of help is welcomed.___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Qt, PyQt and spelling

2010-06-20 Thread projetmbc
>>> It's easy to make pyenchant work with pyqt. Check this out:
>>> http://code.google.com/p/marave/source/browse/#svn/trunk/marave/editor

The problem is that this project is a small one and doesn't work on Snow 
Leopard, even after enchant has been installed via MacPort.

>>> It's a generic "editor" widget, supports spellchecking via pyenchant and 
>>> syntax highlighting via qt-source-highlight plus gives you 
>>> search/replace/go 
>>> to line widgets and a few extra goodies. 

That's look good but I can test it.

Every kind of help is welcomed.
 ___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] OS X PyQt configure fails to detect Qt modules with SIP dev snapshot

2010-06-20 Thread William Kyngesburye
When checking for Qt modules, they all fail.  With verbose on:

g++ -arch i386 -arch x86_64 -DQT_NO_DEBUG -DQT_GUI_LIB -I. -I/mkspecs/macx-g++ 
-I/Library/Frameworks/QtGui.framework/Headers -I/usr/include -pipe -arch i386 
-arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -O2 -w cfgtest_QtGui.cpp 
-o cfgtest_QtGui -F/Library/Frameworks -L/Library/Frameworks 
-headerpad_max_install_names -arch i386 -arch x86_64 
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk " /Library/Frameworks" 
-framework QtGui -framework QtCore
i686-apple-darwin10-g++-4.2.1:  /Library/Frameworks: No such file or directory
i686-apple-darwin10-g++-4.2.1:  /Library/Frameworks: No such file or directory
lipo: can't figure out the architecture type of: 
/var/folders/sR/sRPc625DExO5QU-J7yy7vE+++TQ/-Tmp-//ccwIuEu6.out

Note the " /Library/Frameworks" in there, right before the framework flags.  
This seems to be coming from the dev snapshot of SIP:

siputils.py, line 2317 (in parse_build_macros(), ignore comments section):

if adding:
orig_rhs = raw.get(lhs)
if orig_rhs is not None:
rhs = orig_rhs + " " + rhs

if I comment that out, the Qt tests succeed.  It didn't seem to hurt 
compilation at all.

-
William Kyngesburye 
http://www.kyngchaos.com/

"Time is an illusion - lunchtime doubly so."

- Ford Prefect


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


[PyQt] Qt, PyQt and spelling

2010-06-20 Thread projetmbc
Hello,
is there some chance that PyQt to have a spelling tool one day ? It could be 
very usefull to have such a library which could work similarly to pyenchant for 
example.

Best regards.
C.

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

[PyQt] Strange error with latest PyQt4 snapshot

2010-06-20 Thread detlev
Hi,

I just upgraded to latest PyQt4 snapshot and got the following error while 
executing this lines of code

self.__index = self.__engine.indexWidget()
self.__index.installEventFilter(self)

self.__engine is a QHelpEngine and self.__index is a QHelpIndexWidget.
The error is:

: 
type 'QMaphttp://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] self.sender() with new connect/signal

2010-06-20 Thread Albert Cervera i Areny
We're changing an application from using old-style 'connect(SIGNAL()  
SLOT())' functions to new-style 'signal.connect( slot )' ones but it  
seems that executing 'self.sender()' in the slot doesn't have the same  
behaviour as it used to because it always returns None.


Is there a way to know who called the slot with new-style signal and slot?


This message was sent using IMP, the Internet Messaging Program.


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


[PyQt] Strange bug with QFileDialog static methods and IPython running in a QProcess on win32

2010-06-20 Thread Pierre Raybaut
Hi Phil,

I did a lot of tests about this bug and I still can't understand where it
comes from.
At least I've succeeded in narrowing down the test cases:

* test #1:

from PyQt4.QtGui import QFileDialog, QApplication
app = QApplication([])

filename = QFileDialog.getSaveFileName(None)


* test #2:


from PyQt4.QtGui import QFileDialog, QPushButton, QApplication

from PyQt4.QtCore import SIGNAL

app = QApplication([])

button = QPushButton("Test", None)

button.connect(button, SIGNAL("clicked()"),

lambda: QFileDialog.getSaveFileName(None))

button.show()

app.exec_()


I'm running these tests in Spyder's external console: this is a console
widget (QPlainTextEdit) showing stdin, stdout and stderr of a Python or
IPython interpreter running in a QProcess (see this screenshot:
http://spyderlib.googlegroups.com/web/ipython.png).
Running test #1 is a success in every situation (simple Python interpreter
or IPython running).
On the contrary, running test #2 gives the following results:
* simple Python interpreter: ok
* IPython: the GUI freezes when clicking the button, and it unfreezes
when sending something in QProcess' stdin (like pressing  in the
console).

Apparently the only difference between these two tests is that I'm running
QApplication's event loop in test #2.
But note that this freezing situation is only happening for QFileDialog's
static methods (getOpenFileName, getSaveFileName, and so on) and is never
happening for other kinds of widgets or dialog boxes... and I remember
seeing a message in stdout when using these methods in PyQt v4.3 (something
like "redirecting in win32 console") suggesting that these methods were
doing weird things on stdin/stdout and that it could be related to this bug.

I'm stuck with this bug, so I would really appreciate your help!
Note that it's excellent news to be able to embed IPython in a PyQt-based
IDE: this will be the first time an IDE is able to provide such powerful
feature... so this is also great news for PyQt!

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