[PyQt] PyQT/Qt Designer question

2008-05-16 Thread Tim Finkbeiner
Hi I'm pretty new to development with PyQt, and I have a couple of questions. I've followed a simple tutorial to create a basic application, but I've run into a snag regarding the toolbar icons. The code that pyuic generated for my main frame looks like this: ... self.fileNewAction = QAction(s

Re: [PyQt] Problems with KSysTray

2008-05-16 Thread Russell Valentine
By setting KAboutData and putting it in the KCmdLineArgs it puts programName instead of unknown. aboutData = KAboutData("appName", "My Super Cool Program Name", "0.01", "This app does everything", KAboutData.License_GPL, "(c) 2008 John Doe", None, "http://mywebpage.org";, "[EMAIL PROTECTED]");

[PyQt] pyuic4 bug?

2008-05-16 Thread Mats
I'm trying to run pyuic4 against a ui file with a QMdiArea widget in it and get the following error: Unknown Qt widget: QMdiArea A ui file without any QMdiArea will work just fine. I've tried with PyQt 4.4 rc1 and 4.4 final with the same result. Any help appreciated. Thanks in advance

Re: [PyQt] -KPIC option removed in icc 10.1 ?

2008-05-16 Thread Phil Thompson
On Thursday 15 May 2008 21:43:25 Glen W. Mabey wrote: > Hello, > > I'm getting an error in building sip 4.7.5 with icc: > > icpc -o sip main.o transform.o gencode.o export.o heap.o parser.o > lexer.o -L/usr/X11R6/lib > make[1]: Leaving directory > `/home/gmabey/src/DiamondBack/Diamondback/src/sip-

Re: [PyQt] Re: Getting QGraphicsWidget from methods that return QGraphicsItems

2008-05-16 Thread Phil Thompson
On Wednesday 14 May 2008 22:59:34 Aron Bierbaum wrote: > Sorry, I forgot to include the new code: > > case 11: > // We need to explicitly cast because of the multiple > inheritance. *sipCppRet = static_cast(sipCpp); > sipClass = sipClass_QGraphicsWidget; >

[PyQt] Problems with KSysTray

2008-05-16 Thread David Klasinc
Greetings, I hope that this list deals with PyKDE issues too. :) Anyways, I am making an application that stays docked in KDE Systray. Copied straight from the PyKDE examples, this is my code: self.systray = KSystemTray (self, "MyApp") self.systray.setCaption ("MyApp")

Re: [PyQt] PyQt4.4 - Exporting .ui to .py problems with QIcon

2008-05-16 Thread Gustavo A. Díaz
Ok... sorry Phil... Heres my .ui file. The think is that was not happening before. Thanks. 2008/5/16 Phil Thompson <[EMAIL PROTECTED]>: > On Friday 16 May 2008 17:18:55 Gustavo A. Díaz wrote: > > Hi guys! > > > > There is a problem when i export the .ui file to .py (which never > happened > >

[PyQt] QAbstractItemModel segfaults, example code

2008-05-16 Thread Matt Chambers
Tried with Qt 4.3, Qt 4.4, PyQt 4.3.3, PyQt 4.4. I think it has something to do with my parent implementation. It starts ok but if you try to open the tree it segfaults right away. #!/bin/env python import sys from PyQt4 import QtCore, QtGui from PyQt4.QtCore import SIGNAL EMPTY_VARIANT = Q

Re: [PyQt] PyQt4.4 - Exporting .ui to .py problems with QIcon

2008-05-16 Thread Phil Thompson
On Friday 16 May 2008 17:18:55 Gustavo A. Díaz wrote: > Hi guys! > > There is a problem when i export the .ui file to .py (which never happened > before). Using Designer i've set an icon to a button. > The exported file does not include the path of the icon/resource having > this as result: > > sel

[PyQt] PyQt4.4 - Exporting .ui to .py problems with QIcon

2008-05-16 Thread Gustavo A. Díaz
Hi guys! There is a problem when i export the .ui file to .py (which never happened before). Using Designer i've set an icon to a button. The exported file does not include the path of the icon/resource having this as result: self.applyButton = QtGui.QPushButton(self.centralwidget) self.applyButt

Re: [PyQt] QDoubleSpinBox and decimal separator

2008-05-16 Thread simone
Henrik Pauli ha scritto: Does your numeric-dot key really emit a period, or does it emit a comma? I think the problem might lie in that your keyboard layout doesn’t agree with your locale settings — in which case, see if there’s a variant with num-dot emitting a comma, or if there isn’t such,

Re: [PyQt] QDoubleSpinBox and decimal separator

2008-05-16 Thread David Boddie
On Fri May 16 12:30:11 BST 2008, Aaron Digulla wrote: > Quoting Henrik Pauli : > > >> In my locale, the decimal separator is ',' and not '.'. If I try to > >> write a decimal separator in a QDoubleSpinBox via the '.' button in the > >> numeric pad, the spinbox doesn't accept the value and I have t

Re: [PyQt] QDoubleSpinBox and decimal separator

2008-05-16 Thread Aaron Digulla
Quoting Henrik Pauli <[EMAIL PROTECTED]>: In my locale, the decimal separator is ',' and not '.'. If I try to write a decimal separator in a QDoubleSpinBox via the '.' button in the numeric pad, the spinbox doesn't accept the value and I have to hit the ',' button under the 'k' key. This happens

Re: [PyQt] configuring pykde4, error

2008-05-16 Thread Giacomo Lacava
Isn't this related to http://www.riverbankcomputing.com/pipermail/pyqt/2008-March/018916.html ? the fixed PyKDE 4.0.2-2 never made it to the RiverbankComputing site, you can still only download 4.0.2-1. cheers Giacomo On Thu, May 15, 2008 at 6:02 PM, Jim Bublitz <[EMAIL PROTECTED]> wrote: > >>

Re: [PyQt] QDoubleSpinBox and decimal separator

2008-05-16 Thread Henrik Pauli
On Friday 16 May 2008, simone wrote: > Hi, I have a problem with a QDoubleSpinBox on Windows. > > In my locale, the decimal separator is ',' and not '.'. If I try to > write a decimal separator in a QDoubleSpinBox via the '.' button in the > numeric pad, the spinbox doesn't accept the value and I h

[PyQt] QDoubleSpinBox and decimal separator

2008-05-16 Thread simone
Hi, I have a problem with a QDoubleSpinBox on Windows. In my locale, the decimal separator is ',' and not '.'. If I try to write a decimal separator in a QDoubleSpinBox via the '.' button in the numeric pad, the spinbox doesn't accept the value and I have to hit the ',' button under the 'k' ke