Re: [PyQt] Converting an ugly path to a shell path

2010-09-14 Thread Sybren A. Stüvel
On Tuesday 14 September 2010 00:08:40 amfr...@web.de wrote: I think quotes don't work always ? For example when i have a dir like ' how do i quote it ? I would take out the middle man. Don't use the shell, unless you really have to. If you just pass a list of arguments to subprocess.Popen,

[PyQt] QString rfind exception in uic.loadUi

2010-09-14 Thread Gökçen Eraslan
Hello, When I run this code: from PyQt4 import uic from PyQt4.QtCore import QString uic.loadUi(QString(notexists.ui)) in sip 4.10.2 and PyQt 4.7.3, I'm getting - Traceback (most recent call last): ... ... IOError: [Errno 2] No such file or directory:

Re: [PyQt] Access to lines of text on textEdit.

2010-09-14 Thread Algis Kabaila
On Tuesday 14 September 2010, 01:54:01 Algis Kabaila wrote: Is it possible to access lines of text in a textEdit? If so how can I find information about it? On Tuesday 14 September 2010 10:09:10 Hans-Peter Jansen wrote: Depending on document type, try this:

Re: [PyQt] order of flags significant in coercing

2010-09-14 Thread Benoît HERVIER
Thanks! 2010/9/13 Phil Thompson p...@riverbankcomputing.com: On Wed, 8 Sep 2010 14:56:00 +0200, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, there's an issue with the order of flags when coercing to int for e.g. QPainter.paintText(): from PyQt4.QtCore import *

Re: [PyQt] QString rfind exception in uic.loadUi

2010-09-14 Thread Phil Thompson
On Tue, 14 Sep 2010 09:23:52 +0300, Gökçen Eraslan gok...@pardus.org.tr wrote: Hello, When I run this code: from PyQt4 import uic from PyQt4.QtCore import QString uic.loadUi(QString(notexists.ui)) in sip 4.10.2 and PyQt 4.7.3, I'm getting - Traceback (most recent

[PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Hans-Peter Jansen
On Tuesday 14 September 2010, 09:48:47 Algis Kabaila wrote: On Tuesday 14 September 2010, 01:54:01 Algis Kabaila wrote: Is it possible to access lines of text in a textEdit? If so how can I find information about it? On Tuesday 14 September 2010 10:09:10 Hans-Peter Jansen wrote:

Re: [PyQt] Problem with exception translation

2010-09-14 Thread Phil Thompson
On Thu, 9 Sep 2010 15:59:04 +0200, Hans Meine me...@informatik.uni-hamburg.de wrote: Hi, I have had many problems with exception translation. First of all, it seems to be an undocumented fact that the exception translation is overwritten by %MethodCode blocks (i.e. not wrapped around

Re: [PyQt] SVG Glyphs in PyQt

2010-09-14 Thread Colin McPhail
On 13 Sep 2010, at 19:24, Kyle Covington wrote: Recently I found that svg files generated by Cairo do not plot properly in pyqt. The error comes from the use of glyphs which seem not to be shown in pyqt (this might be wrong but I couldn't find any way of getting glyphs to render).

Re: [PyQt] Problem with exception translation

2010-09-14 Thread Hans Meine
On Tuesday 14 September 2010 11:51:09 Phil Thompson wrote: me...@informatik.uni-hamburg.de wrote: Anyhow, now I found the /Default/ annotation, which is exactly what I want. However, I get compile errors from the generated code; obviously, the above %TypeHeaderCode is not inserted into

Re: [PyQt] Problem with exception translation

2010-09-14 Thread Phil Thompson
On Tue, 14 Sep 2010 12:21:40 +0200, Hans Meine me...@informatik.uni-hamburg.de wrote: On Tuesday 14 September 2010 11:51:09 Phil Thompson wrote: me...@informatik.uni-hamburg.de wrote: Anyhow, now I found the /Default/ annotation, which is exactly what I want. However, I get compile errors

Re: [PyQt] Problem with exception translation

2010-09-14 Thread Hans Meine
On Tuesday 14 September 2010 14:46:27 Phil Thompson wrote: There is no problem with telling lies to SIP, but you have to be consistent with those lies. In this case you should add #include exception to Foo's %TypeHeaderCode block. I see, thanks. Have a nice day, Hans

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Steve Borho
On Tue, Sep 14, 2010 at 4:08 AM, Hans-Peter Jansen h...@urpla.net wrote: On Tuesday 14 September 2010, 09:48:47 Algis Kabaila wrote: On Tuesday 14 September 2010, 01:54:01 Algis Kabaila wrote: Is it possible to access lines of text in a textEdit?  If so how can I find information about

Re: [PyQt] Converting an ugly path to a shell path

2010-09-14 Thread AmFreak
Am 14.09.2010, 08:08 Uhr, schrieb Sybren A. Stüvel syb...@stuvel.eu: On Tuesday 14 September 2010 00:08:40 amfr...@web.de wrote: I think quotes don't work always ? For example when i have a dir like ' how do i quote it ? I would take out the middle man. Don't use the shell, unless you really

Re: [PyQt] Converting an ugly path to a shell path

2010-09-14 Thread Sybren A. Stüvel
On Tuesday 14 September 2010 18:40:38 amfr...@web.de wrote: My problem is that i also have commands that are together with paths so cmd = ls /home/user/test dir/. And afaik if i don't use the shell i need to seperate command and path ? Yep, you can use the shlex module for that. But - only if

Re: [PyQt] SVG Glyphs in PyQt

2010-09-14 Thread Kyle Covington
I can't speak for Cairo-generated SVG files, but PyQt4 doesn't have a problem displaying glyphs from SVG font files generated by FontForge, for example. Assuming that file /Users/colin/MyFonts/MagicFont.svg contains a valid font id=MagicFont ... ... /font definition then a test file such

[PyQt] timers from mainwindow

2010-09-14 Thread Sebastian Elsner
Hello, I would like to start a QTimer from a mainwindow's menu, creating a new instance of a custom class. See the example below. All works except the timer's callback is never called. Asking if the timer is active returns True. I ran out of ideas. Maybe I misunderstand how timers work?! Any

Re: [PyQt] timers from mainwindow

2010-09-14 Thread Doug Bell
Sebastian Elsner wrote: I would like to start a QTimer from a mainwindow's menu, creating a new instance of a custom class. See the example below. All works except the timer's callback is never called. Asking if the timer is active returns True. I ran out of ideas. Maybe I misunderstand how

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Hans-Peter Jansen
On Tuesday 14 September 2010, 17:51:28 Steve Borho wrote: On Tue, Sep 14, 2010 at 4:08 AM, Hans-Peter Jansen h...@urpla.net wrote: On Tuesday 14 September 2010, 09:48:47 Algis Kabaila wrote: On Tuesday 14 September 2010, 01:54:01 Algis Kabaila wrote: Is it possible to access lines of

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread fpp
On Tue, Sep 14, 2010 at 8:48 PM, Hans-Peter Jansen h...@urpla.net wrote: Download a matching zip archive, e.g.: ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.3.zip, extract the doc/qch/*.qch files and register them within assistant. Pete Thanks for that ! I tried unpacking

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Peter Milliken
Exactly how does one find a matching zip archive? :-) I have looked and they don't make it easy! For example, how do I navigate to the 4.7.6 matching archive? Foolishly I thought that if I just used your link and changed the numbers it would work - foolish boy! Any clues how to navigate through

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread David Boddie
On Tue Sep 14 22:59:29 BST 2010, Peter Milliken wrote: Exactly how does one find a matching zip archive? :-) I have looked and they don't make it easy! This is because PyQt 4.7.x is used with Qt 4.6.x. For example, how do I navigate to the 4.7.6 matching archive? Foolishly I thought that

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Hans-Peter Jansen
On Tuesday 14 September 2010, 23:59:29 Peter Milliken wrote: Exactly how does one find a matching zip archive? :-) I have looked and they don't make it easy! For example, how do I navigate to the 4.7.6 matching archive? Foolishly I thought that if I just used your link and changed the

Re: [PyQt] Howto use the Qt documentation successfully - Was: Re: Access to lines of text on textEdit.

2010-09-14 Thread Peter Milliken
On Wed, Sep 15, 2010 at 9:05 AM, Hans-Peter Jansen h...@urpla.net wrote: Come on, Peter, that's not fair. Phil decided to not provide the bulky docs in an otherwise pretty complete package for Windows users: please respect that. He has to pay for your downloads in some ways (and is doing a lot