[PyQt] Simple connect does not work

2009-04-24 Thread Mads Ipsen
Hi, I am puzzled why the connection used in the example below does not work. I get the error: Object::connect: No such slot SpinBox::foo(int) Example snippet: import sys from PyQt4 import QtCore, QtGui class SpinBox(QtGui.QSpinBox): def __init__(self, parent=None):

Re: [PyQt] Simple connect does not work

2009-04-24 Thread Mads Ipsen
Hi, I am puzzled why the connection used in the example below does not work. I get the error: Object::connect: No such slot SpinBox::foo(int) Example snippet: import sys from PyQt4 import QtCore, QtGui class SpinBox(QtGui.QSpinBox): def __init__(self, parent=None):

Re: [PyQt] Simple connect does not work

2009-04-24 Thread Jan Ekholm
On Friday 24 April 2009, Mads Ipsen wrote: OK, I need to use a signature (see below). Sorry for bothering you! class SpinBox(QtGui.QSpinBox): def __init__(self, parent=None): QtGui.QSpinBox.__init__(self, parent) @QtCore.pyqtSignature(int) def foo(self, i):

Re: [PyQt] Simple connect does not work

2009-04-24 Thread Mads Ipsen
On Friday 24 April 2009, Mads Ipsen wrote: OK, I need to use a signature (see below). Sorry for bothering you! class SpinBox(QtGui.QSpinBox): def __init__(self, parent=None): QtGui.QSpinBox.__init__(self, parent) @QtCore.pyqtSignature(int) def foo(self, i):

Re: [PyQt] implications of running PyQt 4.4.x with Qt 4.5?

2009-04-24 Thread Phil Thompson
On Thu, 23 Apr 2009 22:06:20 -0400, Devon Rueckner devon.rueck...@temboo.com wrote: On Wed, Apr 22, 2009 at 4:08 PM, Phil Thompson p...@riverbankcomputing.com wrote: On Wed, 22 Apr 2009 15:51:23 -0400, Devon Rueckner devon.rueck...@temboo.com wrote: On Wed, Apr 22, 2009 at 12:50 PM, Phil

Re: Re: [PyQt] Link between a QWebViev and a JavaScript program

2009-04-24 Thread projetmbc
Marcell Mars a écrit : from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import * myWebKit = QWebView() myWebKit.show() myWebKit.setUrl(QUrl(http://www.google.com;)) myWebKit.page().mainFrame().evaluateJavaScript(open('jquery.js').read())

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

2009-04-24 Thread Ori Avtalion
On 04/23/2009 03:31 AM, Henning Schröder wrote: 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

Re: [PyQt] splitting windows

2009-04-24 Thread Mads
I found a solution for this, QSplitter works fine for me. thanks From: Mads kofo...@yahoo.com To: pyqt@riverbankcomputing.com Sent: Thursday, April 23, 2009 5:19:53 PM Subject: [PyQt] splitting windows Hi all I have an application with a Graphicsscene with

[PyQt] Change subscription

2009-04-24 Thread Edwin Marshall
How do I change my subscription to daily digest instead of individual emails? Thanks. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Re: Change subscription

2009-04-24 Thread Edwin Marshall
NVM, I found my subscription page. I'm pretty new to using mailing lists, so please excuse the ignorance. Get Free Smileys for Your IM Email - Learn more at www.crawler.com/smileys Works with AIM, MSN Messenger, Yahoo! Messenger, ICQ, Google Talk and most webmails

Re: [PyQt] (PyQt-snapshot) + (SIP-snapshot) = plasma crash

2009-04-24 Thread Simon Edwards
Grissiom wrote: After installed PyQt-snapshot-20090422 and sip-snapshot-20090420 my plasma crashed after re-login. KDE4.2.2, Qt-copy(equal to 4.5). Need I recompile KDE?... Any hints? Thanks in advance. ;) You need to recompile PyKDE in kdebindings which actually won't work right now since

[PyQt] Populate Model data in a separate thread

2009-04-24 Thread Edwin Marshall
I've been reading on qtcentre that it is possible to populate a model from a separate qthread in order to prevent a program from freezing before it loads, however the example code I have seen is a bit too much involved (and in c++) for me to comprehend. I was wondering if anyone knew of a pyqt

Re: [PyQt] Crash in siplib.c:findSlot, with test case and fix

2009-04-24 Thread Phil Thompson
On Thu, 23 Apr 2009 15:21:51 -0700, Matt Newell newe...@blur.com wrote: On Thursday 23 April 2009 10:32:59 Matt Newell wrote: It seems if a wrapped class A has slots and a wrapped subclass B does not then an assert is triggered when calling a slot from A on an instance of B. To build and run

Re: [PyQt] Issue Building Latest Snapshot

2009-04-24 Thread Aron Bierbaum
If I change line 704 of PyQt's configure.py to be: inc_path = [sipcfg.py_inc_dir, sipcfg.sip_inc_dir] then PyQt builds without problems. -Aron On Thu, Apr 23, 2009 at 5:24 PM, Aron Bierbaum aronbierb...@gmail.com wrote: If I configure PyQt with the following settings, keep in mind sip is

[PyQt] sipdistutils.py - adding custom options to the sip build command

2009-04-24 Thread Stefano Brilli
Hi, While using sipdistutils.py I noticed that it is not possible to add the -e flag to the sip build command. So I did a little change in sipdistutils.py I would like to contribute with this patch. (And this is a small using example) - setup.py --- from

[PyQt] uic and pyuic ? on windows

2009-04-24 Thread mad city
Running tutorial with Qt Designer. When I try and 'view code' get error: Unable to launch c:/Python26/Lib/site-packages/PyQt4/.\uic The path is messed up during the install? So, I wanted to try the command line version, but I can't find the 'pyuic.exe' executable, is this not included in the

Re: [PyQt] uic and pyuic ? on windows

2009-04-24 Thread Hazen Babcock
mad city wrote: Running tutorial with Qt Designer. When I try and 'view code' get error: Unable to launch c:/Python26/Lib/site-packages/PyQt4/.\uic The path is messed up during the install? So, I wanted to try the command line version, but I can't find the 'pyuic.exe' executable, is this

[PyQt] Creating widget drawing benchmark test

2009-04-24 Thread Brent Villalobos
Has anyone written a widget draw-time benchmarking program? I need to write a test that will provide an idea of how PyQt performs with a large number of widgets. I'm thinking of writing an application that creates a grid of QPushButton widgets. The test then runs when someone pushes a Go

Re: [PyQt] Creating widget drawing benchmark test

2009-04-24 Thread Andreas Pakulat
On 24.04.09 17:02:35, Brent Villalobos wrote: Has anyone written a widget draw-time benchmarking program? I need to write a test that will provide an idea of how PyQt performs with a large number of widgets. I'm thinking of writing an application that creates a grid of QPushButton