[PyQt] Continued: Taskbar daemon, DBus

2009-12-11 Thread lokev
lokev wrote: I was wondering if I could get some pointers, or directions to good tutorials or examples for the following: I want to make a daemon that runs with an icon in the system tray/notification area, how to i do this? basweber wrote: http://paste.pocoo.org/show/42329/ or look at real life

[PyQt] Install script for Python applications

2009-12-11 Thread Lukas Hetzenecker
Hello, I've developed a application using Python and PyQt4. What is the best way to make a install.py / setup.py / Makefile for installing this application? It should check if all depencies are found (this should be really simple: try: import xxx except ImportError: print ; sys.exit(2) ) It

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

2009-12-11 Thread Sundance
On Friday 11 December 2009 07:28:27 Henning Schröder wrote: I have looked at the source of QPlainTextEdit and QTextEdit. Actually the implementations are not consistent. QPlainTextEdit calls verticalBar.blockSignals(True) before it call setValue which would otherwise emit valueChanged. Hi

Re: [PyQt] Install script for Python applications

2009-12-11 Thread Darren Dale
On Fri, Dec 11, 2009 at 6:11 AM, Lukas Hetzenecker l...@gmx.at wrote: Hello, I've developed a application using Python and PyQt4. What is the best way to make a install.py / setup.py / Makefile for installing this application? It should check if all depencies are found (this should be

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

[PyQt] Spacing between tabs in QTabWidget etc...

2009-12-11 Thread Jebagnana Das
Hi all, I have two questions regarding QTabWidget.. 1)Is it possible for us to leave space between the tab headers(between tab1 and tab2 in the header in this picture)... http://i48.tinypic.com/r2uhxf.jpg http://i48.tinypic.com/r2uhxf.jpg%20 If yes could you tell me how it can be

Re: [PyQt] Spacing between tabs in QTabWidget etc...

2009-12-11 Thread Selim Tuvi
You should be able to use stylesheets to modify the tab margins. See the docs for details: http://doc.trolltech.com/4.5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar example: QTabBar::tab { margin-left: 5; margin-right: 5; } The docs also provide examples on how to

Re: [PyQt] a small bug in SIP, when using it for C libraries (sorry for previous post, its message was scrubbed)

2009-12-11 Thread Phil Thompson
On Thu, 10 Dec 2009 06:08:07 +0530, Ravi kumar ravi.kumar@gmail.com wrote: Hello, I was trying out the tutorial of SIP from http://www.riverbankcomputing.co.uk/static/Docs/sip4/using.html. When i tried the C++ example there, it worked fine. But when i tried the C example it gave errors.

[PyQt] Getting a SystemError: error return without exception set when I try to do QGraphicsScene.addItem(QGraphicsItem)

2009-12-11 Thread dizou
I have a widget that creates two objects, DisplayScene and DisplayView. DisplayScene inherits from the QGraphicsScene class, and DisplayView inherits from the QGraphicsView class. I also have MyItem that inherits from the QGraphicsItem class. When I run this program and the DisplayScene.Read

[PyQt] Laucnh a JavaScript after and not before the loading of a page in QWebView

2009-12-11 Thread projetmbc
Hello, in the following code the JavaScript is launched before the loading of the HTML page. Is there a way to call a JavaScript only when the whole page is loaded in the QWebView ? Best regards. Christophe. == # -*- coding: utf-8 -*-

[PyQt] Wrong Qt include paths when building PyQt

2009-12-11 Thread Josh
Hi, I'm having a problem building PyQt 4.6.2 against local builds of Qt4.6.0 and SIP 4.9.3. Basically the includes paths in the calls to g++ point to the wrong place. I have my build of Qt in /home/me/qt4. I try to build PyQt, pointing it to my Qt's qmake: python configure.py -q

Re: [PyQt] Drag Drop with QTreeWidget

2009-12-11 Thread Baz Walter
NARCISO, Rui wrote: Hi again Your approach worked nicely but when I tried to enable sorting using: self.setSortingEnabled(True) self.sortByColumn(0, QtCore.Qt.AscendingOrder) I get a segmentation fault. If i disable the sortByColumn then it works. How then to set the

Re: [PyQt] Getting a SystemError: error return without exception set when I try to do QGraphicsScene.addItem(QGraphicsItem)

2009-12-11 Thread Phil Thompson
On Fri, 11 Dec 2009 10:15:19 -0800 (PST), dizou di_...@yahoo.com wrote: I have a widget that creates two objects, DisplayScene and DisplayView. DisplayScene inherits from the QGraphicsScene class, and DisplayView inherits from the QGraphicsView class. I also have MyItem that inherits from the

Re: [PyQt] Laucnh a JavaScript after and not before the loading of a page in QWebView

2009-12-11 Thread Phil Thompson
On Fri, 11 Dec 2009 19:43:08 +0100 (CET), projet...@club-internet.fr wrote: Hello, in the following code the JavaScript is launched before the loading of the HTML page. Is there a way to call a JavaScript only when the whole page is loaded in the QWebView ? The QWebView.loadFinished()

[PyQt] Unable to find file QtCore/QtCoremod.sip...

2009-12-11 Thread Jamie Riotto
I'm on Windows using Python 2.5, PyQt-win-gpl-4.6.1, sip-4.9.1 and Qt 4.5.2. I have a working graphics primative library that I wrap with SIP. I'd like to add Qt classes to my library, e.g. QString. I've added: %Import QtCore/QtCoremod.sip to my sip file, but I get the error: sip: Unable to