[PyKDE] Typecasting problems with PyQt embedded in Scribus

2005-06-29 Thread Henning Schröder
Hi! Scribus is a free DTP application which is coded in C++ and Qt and provides scripting with Python. A Python script can import the qt module and access the data from the running application as far as it is reachable with the Qt-object system (qApp.children(), ..) Unfortunately automatic

Re: [PyKDE] Typecasting problems with PyQt embedded in Scribus

2005-06-30 Thread Henning Schröder
Hi! Jim Bublitz [EMAIL PROTECTED]: [..] wrapinstance and unwrapinstance are covered in the sip docs. Thanks I will try your C++/Python-mixed solution. But I wonder why the following does not work: ptr = sip.unwrapinstance(qt.qApp.mainWidget()) mainWindow = sip.wrapinstance(ptr,

[PyQt] QMetaObject.invokeMethod missing

2007-04-11 Thread Henning Schröder
Hi, I have Python embedded in a C++ application and I want to call its signals and slots without creating an extra wrapper with SIP. Therefore I need QMetaObject.invokeMethod (or perhaps better QObject.qt_metacall I guess). I got the idea from Kross (http://kross.dipe.org/index.html) and I got

Re: [PyQt] How do I embed a video player?

2007-05-31 Thread Henning Schröder
Hi! 2007/5/31, David Boddie [EMAIL PROTECTED]: On Thu May 31 07:15:46 BST 2007, Nahuel Defossé wrote: Is it possible to embed a video player (like mplayer, or xine) in a PyQt app. If so, is it possible to go fullscreen and back? As far as I can tell, there have been a couple of people

[PyQt] Mixing PyQt and QtScript

2007-11-11 Thread Henning Schröder
Hi, perhaps someone else is interested in my experiments in mixing PyQt with QtScript. It seems nobody else has tried it. At least Google did not found anything. Actually it is easily possible and I can imagine some good use cases for it. You can find my code at

Re: [PyQt] Pythonize library

2008-04-10 Thread Henning Schröder
Hi! On Tue, Apr 8, 2008 at 5:18 PM, Miller, Douglas K. CONT NAVAIR 2109, 1, N139 [EMAIL PROTECTED] wrote: Does the pythonize library still exist? If so, where and where is it documented? Thanks. I used it in a C++ project to implement a Python plug-in which was very easy. You might want to

Re: [PyQt] PyQt Release Plans and Qt v4.4 Support

2008-04-17 Thread Henning Schröder
On Thu, Apr 17, 2008 at 11:12 AM, Phil Thompson [EMAIL PROTECTED] wrote: As mentioned before, if you are using GCC, you will need to edit mkspecs/common/g++.conf and comment out the line refering to QMAKE_LFLAGS. I'm am told this will be fixed in the final Qt v4.4 release. I changed the

Re: [PyQt] PyQt Release Plans and Qt v4.4 Support

2008-04-17 Thread Henning Schröder
On Thu, Apr 17, 2008 at 8:27 PM, Phil Thompson [EMAIL PROTECTED] wrote: On Thursday 17 April 2008, Henning Schröder wrote: make[1]: Entering directory `/home/kde/pyqt/PyQt-x11-gpl-4.4-snapshot-20080416/QtCore' g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I

Re: [PyQt] PyQt Release Plans and Qt v4.4 Support

2008-04-17 Thread Henning Schröder
Ok I got the snapshot working by changing void *a0 into uchar *a0 for QFile::unwrap :-) I was playing a litte bit with QtWebKit after reading http://www.trolltech.com/pdf/qt-webkit-mar-2008-whitepaper-a4.pdf There is an example which shows that is possible that a webpage can interact with

Re: [PyQt] Updated PyQt Release Plans

2008-05-02 Thread Henning Schröder
H! On Wed, Apr 30, 2008 at 10:06 AM, Phil Thompson [EMAIL PROTECTED] wrote: The current snapshot has been updated for the final Qt v4.4. I need to finish the new support for QMetaObject.invokeMethod() and expect to release PyQt v4.4 in a week or two. That's really great :) I am only

Re: [PyQt] qvariant and python objects

2008-06-24 Thread Henning Schröder
On Mon, Jun 23, 2008 at 9:50 AM, Phil Thompson [EMAIL PROTECTED] wrote: While QVariant knows how to copy an arbitrary Python object (which is just reference count manipulation) it doesn't know how to serialise one. BTW, is this reference available anyhow to Python? And could I use sip.cast with

Re: [PyQt] Collapsible Dock Widget??

2008-07-23 Thread Henning Schröder
Hi! On Tue, Jul 22, 2008 at 4:20 PM, Darryl Wallace [EMAIL PROTECTED] wrote: Has anyone tried to make the dock widgets collapsible (similar to the windows based dock widgets in that have the little thumbtack icon) in Qt or PyQt? For one of my projects I ported the KOffice2-DockWidget to

Re: [PyQt] Using QVariant.toPyObject to wrap the to* functions

2008-08-14 Thread Henning Schröder
On Thu, Aug 14, 2008 at 9:44 AM, Arve Knudsen [EMAIL PROTECTED] wrote: On Wed, Aug 13, 2008 at 9:37 PM, Erick Tryzelaar [EMAIL PROTECTED] wrote: [..] and etc. This makes QVariant a little more pythonic to me, in my opinion. I agree about this. It would be more natural to have toPyObject work

Re: [PyQt] Feature request: support for flashing characters in QTextEdit

2009-02-03 Thread Henning Schröder
Hi! On Tue, Feb 3, 2009 at 3:09 PM, Edward K. Ream edream...@gmail.com wrote: This is a repost of '[PyQt] Can't disable key strokes while flashing matching brackets' recast as a feature request. Do you mean parenthesis matching? I have found no good way for my app to flash matching brackets

Re: [PyQt] Feature request: support for flashing characters in QTextEdit

2009-02-03 Thread Henning Schröder
Hello! On Tue, Feb 3, 2009 at 6:00 PM, Edward K. Ream edream...@gmail.com wrote: On Tue, Feb 3, 2009 at 9:29 AM, Henning Schröder henning.schroe...@gmail.com wrote: I successfully implemented parenthesis matching with QTextEdit.ExtraSelection. Oh joy. Perhaps you could give me another

Re: [PyQt] Is it possible to override/extend QTextCursor?

2009-02-08 Thread Henning Schröder
Hi! On Sun, Jan 6, 2008 at 7:23 PM, Aaron Digulla digu...@hepe.com wrote: Hello, I tried to overload insertText() of QTextCursor like this: [..] but this test only outputs x. I've checked the C++ source of Qt4 and it should call at least the methods defined above. You have not read the C++

Re: [PyQt] Is it possible to override/extend QTextCursor?

2009-02-08 Thread Henning Schröder
On Sun, Feb 8, 2009 at 10:55 PM, David Boddie da...@boddie.org.uk wrote: On Sun Feb 8 21:52:12 GMT 2009, Henning Schröder wrote: On Sun, Jan 6, 2008 at 7:23 PM, Aaron Digulla digulla at hepe.com wrote: [...] Note the date of the original post. The original discussion happened over a year

Re: [PyQt] Feature request: give QsyntaxHighlighter access to the global offset

2009-02-09 Thread Henning Schröder
2009/2/9 Edward K. Ream edream...@gmail.com: For my app, there is a lamentable hole in the QSyntaxHighlighter interface. My app has been able to work around this hole, but it would be *so* much better if the hole could be plugged. The problem is that QSyntaxHighlighter.highlightBlock is

[PyQt] QTextEdit.ExtraSelection not working anymore

2009-03-09 Thread Henning Schröder
Hi! In the attached example the first line should be highlighted. Unfortunately it does not work on my system[1] Normally I would think I have done something wrong but this code works on my laptop[2] I haven't seen anything relevant in the changelogs. Did I miss anything? Regards Henning [1]

Re: [PyQt] QTextEdit.ExtraSelection not working anymore

2009-03-12 Thread Henning Schröder
Hello Phil! On Tue, Mar 10, 2009 at 7:34 PM, Phil Thompson p...@riverbankcomputing.com wrote: This will be fixed in tonight's SIP snapshot. Thanks it works fine again, I just tested the current snapshot :) But some other behaviour changed and I wonder if this is intentional. The attached

[PyQt] How-to: Deploying PyQt applications on Windows and Mac OS X

2009-03-19 Thread Henning Schröder
Hi, I just found the following article: http://arstechnica.com/open-source/guides/2009/03/how-to-deploying-pyqt-applications-on-windows-and-mac-os-x.ars Maybe some people find it interesting... Greets Henning ___ PyQt mailing list

Re: [PyQt] Call for better SIP documentation (perhaps on wiki)

2009-04-20 Thread Henning Schröder
On Sat, Apr 18, 2009 at 4:11 PM, David Boddie da...@boddie.org.uk wrote: [..} Here are two possible starting points: http://www.diotavelli.net/PyQtWiki/MiniSipExample http://wiki.python.org/moin/SIP Here is another nice one: http://www.rkblog.rk.edu.pl/w/p/making-pyqt4-widgets-sip/ Henning

Re: [PyQt] Exposing complex Qt objects as javascript objects

2009-04-22 Thread Henning Schröder
On Tue, Apr 21, 2009 at 2:15 AM, Ori Avtalion o...@avtalion.name wrote: Hi, I'm trying to create a Qt object that will be exposed to javascript. I want that javascript object to be complex: It has nested objects inside it, and has arrays with other objects in them. I'm not sure how to

[PyQt] Virtualenv script for PyQt snapshots

2009-05-03 Thread Henning Schröder
Hello! I extended virtualenv to download, compile and install the latest sip and PyQt snapshots. You can get the script at http://henning.cco-ev.de/python/dailypyqt-bootstrap.py Virtualenv (http://pypi.python.org/pypi/virtualenv) copys the Python interpreter into a new separate directory. It is

Re: [PyQt] How to override mousePressEvent for an existing QPushButton widget

2009-07-30 Thread Henning Schröder
On Thu, Jul 30, 2009 at 7:10 PM, Dov Grobgelddov.grobg...@gmail.com wrote: Regarding contextMenuPolicy, how would you use that. I tried the following, but it didn't work...   [..]     self.connect(self.button, QtCore.SIGNAL('customContextMenuRequested()'), self.context_menu) You always

Re: [PyQt] New Feature - Keyword Arguments for Properties and Signals

2009-09-11 Thread Henning Schröder
On Thu, Sep 10, 2009 at 8:42 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Thu, 10 Sep 2009 01:25:12 +0300, Ville M. Vainio vivai...@gmail.com wrote: [..] Now, can we have something that does the same thing outside constructor? E.g. act = menu.addAction('blah')

Re: [PyQt] insert search image in the QlineEdit

2009-11-09 Thread Henning Schröder
Hello! On Mon, Nov 9, 2009 at 10:31 AM, tabish-- tabish_shaikh...@yahoo.com wrote: Hi, i wanted to insert a search image in the Qlinedit  example: http://old.nabble.com/file/p26263417/search_bar.jpeg Here is some example code:

Re: [PyQt] Missing scrollbar signal in QPlainTextEdit?

2009-12-10 Thread Henning Schröder
Hi! On Thu, Dec 10, 2009 at 4:35 PM, Sundance sunda...@ierne.eu.org wrote: Hi peeps, I'm playing around with QPlainTextEdit and having the weirdest bug. I experienced the same problem. It would be nice if it would work same in QPlainTextEdit like with QTextEdit.. Perhaps we should write a

Re: [PyQt] Missing scrollbar signal in QPlainTextEdit?

2009-12-10 Thread Henning Schröder
Hello again! On Fri, Dec 11, 2009 at 6:35 AM, Henning Schröder henning.schroe...@gmail.com wrote: Hi! On Thu, Dec 10, 2009 at 4:35 PM, Sundance sunda...@ierne.eu.org wrote: Hi peeps, I'm playing around with QPlainTextEdit and having the weirdest bug. I experienced the same problem

Re: [PyQt] More QPlainTextEdit weirdness! (was: Missing scrollbar signal...)

2009-12-11 Thread Henning Schröder
On Fri, Dec 11, 2009 at 1:31 PM, Sundance sunda...@ierne.eu.org wrote: [..] As part of a helpful little feature that shows you the bottom of your text in a split screen while you scroll back, I use the awesome QTextDocument.drawContents() method. In short, you feed it a QPainter and a QRectF

Re: [PyQt] Detect Application Running

2010-01-11 Thread Henning Schröder
Hello! On Sun, Jan 10, 2010 at 4:49 AM, AON LAZIO aonla...@gmail.com wrote: Hi, How can we find out that there is already a PyQt application running on Windows so when I try to open that same application, it won't open another one? There are two examples at

Re: [PyQt] rounded corners on a qlabel used as a top level window

2010-02-11 Thread Henning Schröder
On Thu, Feb 11, 2010 at 10:42 PM, Victor Noagbodji noagbodjivic...@gmail.com wrote: hello all, if you visit http://jsgrowl.com/, you will see nice modal and semi-modal windows. the idea is to reproduce them using pyqt. i started with a qlabel. used html for the content. set the window flag

Re: [PyQt] using xembed with pyqt/pykde

2010-07-28 Thread Henning Schröder
On Wed, Jul 28, 2010 at 4:17 PM, Aljoša Mohorović aljosa.mohoro...@gmail.com wrote: anybody using xembed with pyqt? Aljosa I used QX11EmbedContainer to embed a terminal in PyQt. I don't know if gvim could be used in a similar way. Henning #

Re: [PyQt] embedding a windows application in a qwidget

2010-08-01 Thread Henning Schröder
Perhaps you have to make sure that you have a native window. Look for alien widgets on Qt, e.g. http://labs.trolltech.com/blogs/2007/08/30/say-goodbye-to-flicker-aliens-are-here-to-stay/ Henning ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] event filters vs subclassing

2010-08-03 Thread Henning Schröder
On Tue, Aug 3, 2010 at 2:27 PM, Dan Halbert halb...@halwitz.org wrote: [..] I can either subclass QGraphicsPixmapItem to handle various mouse events, or do installEventFilter(). In Mark Summerfield's PyQt book (p. 304), he cautions against using event filters, and suggests subclassing for most

Re: [PyQt] Porting PyQt GUI between platforms.

2010-08-04 Thread Henning Schröder
On Tue, Aug 3, 2010 at 12:39 PM, Algis Kabaila akaba...@pcug.org.au wrote: On Tuesday 03 August 2010 17:53:29 Raoul Snyman wrote: On Tue, 3 Aug 2010 17:21:48 +1000, Algis Kabaila akaba...@pcug.org.au wrote: On Tuesday 03 August 2010 15:07:28 Raoul Snyman wrote: Actually, I was asking if

Re: [PyQt] Pixel Manipulation Very Slow?

2010-08-20 Thread Henning Schröder
On Fri, Aug 20, 2010 at 12:21 PM, zhang jian zhangm...@gmail.com wrote: Hello, This is my first post. I want to write a simply app layering several images each with different weighting. This problem is pixel manipulation by QImage appears to be quite slow. The problem is that name look-ups

[PyQt] ANN: Preview of Python code editor widget - pure Python alternative to QScintilla

2010-09-01 Thread Henning Schröder
Hello, although QScintilla is nice I always thought it would be good to base an editor widget on QPlainTextEdit. Over the time I implemented the typical parts which were missing: * line number and icon sidebar * highlighting the current line, higlighting the occurrence of the current word *

Re: [PyQt] ANN: Preview of Python code editor widget - pure Python alternative to QScintilla

2010-09-13 Thread Henning Schröder
On Thu, Sep 2, 2010 at 6:48 AM, projet...@club-internet.fr wrote: Hello, CodeAide looks interesting. I've two questions : Is it to add other languages that Python ? There is some code for QtScript syntax included. Additionally the highlighter class is very flexible and accepts custom syntax

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

2010-09-13 Thread Henning Schröder
On Tue, Sep 14, 2010 at 4:14 AM, Algis Kabaila akaba...@pcug.org.au wrote: Alas, I was not able to use or find findBlockByLineNumber. If you enter findBlockByLineNumber in Qt Assistant you will see that this method belongs to a QTextDocument object and returns a QTextBlock object QTextEdit has a

Re: [PyQt] ipc/shared memory examples

2010-11-03 Thread Henning Schröder
On Wed, Nov 3, 2010 at 10:46 AM, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil et al., now, that sip.voidptr allows to access and modify shared memory segments, here are Qt4's ipc examples converted to PyQt, tested with Python 2.6. Testing with 2.7 and 3.x might be a good idea.. Note,

Re: [PyQt] One question about CodeAide

2010-11-15 Thread Henning Schröder
Hello! On Thu, Nov 11, 2010 at 10:54 AM, projet...@club-internet.fr wrote: Hello, I know that the author of this project http://www.henning-schroeder.de/codeaide/ is on this list. I would like to know the method used for implementing FOLDING in a QPlainTextEdit. I'm just interested with

Re: [PyQt] One question about CodeAide

2010-11-15 Thread Henning Schröder
On Mon, Nov 15, 2010 at 12:53 PM, Algis Kabaila akaba...@pcug.org.au wrote: Hello Henning, So the QTextEdit and QPlainTextEdit handle the QTextDocument in much the same way? OldAl. Yes but there are different layout engine attached to the document (QPlainTextLayout vs

Re: [PyQt] Qt Contributors Summit

2011-06-09 Thread Henning Schröder
On Wed, Jun 8, 2011 at 9:37 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Thu, 9 Jun 2011 00:18:09 +0300, Attila Csipa p...@csipa.in.rs wrote: On Wednesday 08 June 2011 23:08:36 you wrote:   form_display = ['first_name', 'last_name', 'birthdate']   this single line will generate me

[PyQt] I created a demo how to embed PyQt into C++ with some meta programming

2011-08-10 Thread Henning Schröder
Hello, please see http://www.henning-schroeder.de/embeddedpyqt/ if you are interested in this topic. The idea was to create easy access between Python and C++ and providing a simple api to the end user. Feedback welcome. Regards Henning ___ PyQt mailing

Re: [PyQt] segfault when using Qt.QueuedConnection

2011-08-26 Thread Henning Schröder
BTW: I often get a helpful stacktrace after a segfault with faulthandler (http://pypi.python.org/pypi/faulthandler/). I only have to enable it once in my project. On Thu, Aug 25, 2011 at 3:18 PM, Erik Janssens erik.janss...@conceptive.be wrote: Hi, After lots of tries I have been able to get

[PyQt] Small terminal/console with vt100 emulation

2011-10-01 Thread Henning Schröder
Hello, because pyqonsole only works with Qt3 and porting to Qt4 looks complicated, I used the vt100 implementation of AjaxTerm and created a PyQt4 widget for it. Now I can embed a shell in my Linux applications. If anyone else is interested in such a thing you will find the current version at

Re: [PyQt] Small terminal/console with vt100 emulation

2011-10-12 Thread Henning Schröder
I fixed some small bugs, put everything on bitbucket and added some documentation * https://bitbucket.org/henning/pyqtermwidget * http://packages.python.org/pyqterm/ On Sat, Oct 1, 2011 at 1:03 PM, Henning Schröder henning.schroe...@gmail.com wrote: Hello, because pyqonsole only works

[PyQt] QMetaObject.newInstance does not work as expected

2011-12-01 Thread Henning Schröder
Hello, again I tried to seek to push the boundaries.This time I tried to load a C++ widget inside a library into PyQt using ctypes (without extra sip bindings). I worked well :) but I cannot call a constructor with arguments. The attached code reaches the except-block with PyQt 4.8.5 To test just

[PyQt] Custom webkit protocol example not working anymore?

2012-01-30 Thread Henning Schröder
Hello, I tried http://diotavelli.net/PyQtWiki/Using%20a%20Custom%20Protocol%20with%20QtWebKit (I attached the code). Unfortunately I do not see anything on the page after clicking the link with the new protocol. Has anything changed or is it a bug in the version I used (PyQt 4.8.3, sip 4.12.1) ?

Re: [PyQt] Designer source

2012-03-09 Thread Henning Schröder
On Fri, Mar 9, 2012 at 8:38 AM, Hans-Peter Jansen h...@urpla.net wrote: Am Thursday 08 March 2012 23:08:09 schrieb Andreas Pakulat: On 08.03.12 19:42:39, Detlev Offenbach wrote: Am Donnerstag, 8. März 2012, 09:49:41 schrieb Andreas Pakulat: On 08.03.12 09:35:51, Andreas Pakulat wrote:

Re: [PyQt] Designer source

2012-03-22 Thread Henning Schröder
If someone wants to integrate Designer here is a useable starting point: https://bitbucket.org/henning/pyqtdesigner/get/tip.tar.gz You can open, edit and save forms. Before testing you have to call build.sh This creates a C++ shared library which is loaded by Python with ctypes. The (important)