Re: [PyQt] New PyQt APIs

2010-02-16 Thread Sybren A. Stüvel
Hi Martin, On Monday 15 February 2010 14:06:20 Martin Teichmann wrote: > The other thing I stumbled about is the > sip.setapi thing. It's a bit strange a thing, > especially because it has to be called > before other imports, making the imports > a bit cluttered. I propose to make our own > __futu

Re: [PyQt] Qt include files on Windows

2010-02-16 Thread Jeremy Sanders
On Tue, 16 Feb 2010, Phil Thompson wrote: On Mon, 15 Feb 2010 17:22:43 + (GMT), Jeremy Sanders wrote: Hi - I see that the Windows PyQt development binaries available don't seem to include the Qt header files. These are necessary to compile PyQt Qt/SIP extension modules. Would it be sens

Re: [PyQt] pyqt4 problem with label.setText timing within loops

2010-02-16 Thread Phil Thompson
On Tue, 16 Feb 2010 00:12:47 -0500, Dan Cherry wrote: > I'm trying to run a simple 'for' loop to execute some external programs > (ripping tracks with cdparanoia/lame, but I've stripped the problem down > to bare essentials that demonstrate the problem). > > Each loop should update a gui label

[PyQt] A question about QDockWidget layout

2010-02-16 Thread flya flya
I make a dock widget on top, and central widget at bottom, I hope the dock widget has minimum size when changing the contents on it, but its size often bigger, I tried to change sizePolice, but can't make to work, the only way I found is use setFixedHeight(layout.minimumSize().height()), then It be

Re: [PyQt] A question about QDockWidget layout

2010-02-16 Thread flya flya
ps: uncomment the code: #panel = self.ui.dockWidgetContents_4 #layout = panel.layout() #panel.setFixedHeight(layout.minimumSize().height()) the dockwidget has minimum size, but be fixed, I hope it not fixed. On Tue, Feb 16, 2010 at 6:30 PM, flya flya wrote: > I make a d

[PyQt] QAbstractSpinBox.fixup() error

2010-02-16 Thread David Wolfe
Hi, all. Been a bit confused recently by the behavior of QAbstractSpinBox.fixup(). I have a class that derives from QSpinBox with the goal of ensuring that the user only enters integers whose last two digits form a number between 0 and 31, inclusive. For example, 19900 is valid, as is 19931; bu

[PyQt] strange scrolling behavior everywhere

2010-02-16 Thread Peter Schmidtke
Dear PyQt community, I have several widgets in my MainWindow (desinged with QtDesigner), like a QTableView and some QPlainTextEdit, where I enable automatic scrollbars (not as seperate widget) if necessary. The thing is, when scrolling is needed, scrollbars appear, but the scrolling behavior is s

Re: [PyQt] QAbstractSpinBox.fixup() error

2010-02-16 Thread Phil Thompson
On Tue, 16 Feb 2010 07:10:51 -0500, David Wolfe wrote: > Hi, all. Been a bit confused recently by the behavior of > QAbstractSpinBox.fixup(). I have a class that derives from QSpinBox > with the goal of ensuring that the user only enters integers whose > last two digits form a number between 0 a

[PyQt] help with Qdate

2010-02-16 Thread NISA BALAKRISHNAN
hi, can anyone tel me how to get date entered to date edit widget in a string format so that i can save it in a excel sheet. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] help with Qdate

2010-02-16 Thread Nick Gaens
What do you mean by a "date edit widget"? Futhermore, you could check out the QDate documentation. Take a look at the method getDate() in particular.. On Tue, Feb 16, 2010 at 2:40 PM, NISA BALAKRISHNAN < snisa.balakrish...@gm

Re: [PyQt] QtGui.QColor.fromRgb()

2010-02-16 Thread Aron Bierbaum
Thanks for the quick response. It took me a while to track through exactly why this works. I guess the key is that on 32-bit platforms the return value of the bitwise and is a long instead of a integer. Thanks, Aron On Mon, Feb 15, 2010 at 9:07 PM, Phil Thompson wrote: > On Mon, 15 Feb 2010 17:1

Re: [PyQt] QAbstractSpinBox.fixup() error

2010-02-16 Thread David Wolfe
I thought I could do 'final' validation by overriding fixup(), but I keep seeing the following error in the console: TypeError: invalid result type from IdSpinBox.fixup() The input is a mutable QString. Your normalize_id() function needs to modify the QString it is passed. Thanks, Phil,

[PyQt] Quick PyQt4 on Maemo tutorial

2010-02-16 Thread piotr maliński
Hi I've just published a quick tutorial of running PyQt4 apps on Maemo SDK/Scratchbox emulator: http://www.rkblog.rk.edu.pl/w/p/pyqt4-maemo-fremantle/ The setup isn't easy (compared to Android or iPhone OS), but you can develop apps in Python with PyQt4 or other libraries.

Re: [PyQt] strange scrolling behavior everywhere

2010-02-16 Thread David Boddie
On Tue Feb 16 13:32:12 GMT 2010, Peter Schmidtke wrote: > I have several widgets in my MainWindow (desinged with QtDesigner), like a > QTableView and some QPlainTextEdit, where I enable automatic scrollbars > (not as seperate widget) if necessary. > The thing is, when scrolling is needed, scrollba

Re: [PyQt] strange scrolling behavior everywhere

2010-02-16 Thread Peter Schmidtke
Thanks for answering already :) I know I did not provide lots of information, but more because I thought that this behaviour was somehow normal. Find attached to this mail my ui file. It behaves the same way when I do the preview in the qt designer. some info about the system and versions. openS

Re: [PyQt] strange scrolling behavior everywhere

2010-02-16 Thread Andreas Pakulat
On 17.02.10 01:43:36, Peter Schmidtke wrote: > Thanks for answering already :) I know I did not provide lots of > information, but more because I thought that this behaviour was somehow > normal. > > Find attached to this mail my ui file. It behaves the same way when I do > the preview in the qt d

Re: [PyQt] strange scrolling behavior everywhere

2010-02-16 Thread Peter Schmidtke
On Wed, 17 Feb 2010 01:59:48 +0100, Andreas Pakulat wrote: > On 17.02.10 01:43:36, Peter Schmidtke wrote: >> Thanks for answering already :) I know I did not provide lots of >> information, but more because I thought that this behaviour was somehow >> normal. >> >> Find attached to this mail my u

Re: [PyQt] strange scrolling behavior everywhere

2010-02-16 Thread David Boddie
On Wednesday 17 February 2010, Peter Schmidtke wrote: > Thanks for answering already :) I know I did not provide lots of > information, but more because I thought that this behaviour was somehow > normal. > > Find attached to this mail my ui file. It behaves the same way when I do > the preview in

[PyQt] QPrintDialog (pyqt4)

2010-02-16 Thread jaybstory
Hello, I am trying to print my gui, however I am having trouble. I have a button with a signal as clicked and slot as printd(which is my function that I am calling QPrintDialog. In printd, I have this code: [CODE] def printd(self): pd = QtGui.QPrintDialog(self) pd.exec_() [

Re: [PyQt] QPrintDialog (pyqt4)

2010-02-16 Thread Russell Valentine
jaybstory wrote: Hello, I am trying to print my gui, however I am having trouble. I have a button with a signal as clicked and slot as printd(which is my function that I am calling QPrintDialog. In printd, I have this code: [CODE] def printd(self): pd = QtGui.QPrintDialog(self)