[PyQt] Qt Application with Multiple Windows

2010-03-03 Thread akumarzen
I was trying to create a Application which has multiple windows (QMainwindows or QDialogs) Those windows will be designed using QtDesigner and compiled to .py On click of a button ... i must invoke those windows... Just like Visualbasic ... multiple forms on click of a button... form.show(

[PyQt] QwtPlot axis labels clipped

2010-03-03 Thread Gib Bogle
This is more of a PyQwt question than a PyQt question, but someone here may know the answer. I'm using the QwtPlot widgets with QtDesigner, on Windows XP. The numbers labeling the ticks on the left y-axis are often (but not always) displayed with the left edge cut off, so '8.0' looks like '3.

Re: [PyQt] Is there a way to run the interp AND a gui?

2010-03-03 Thread Jason H
Undoubtedly, that would work for showing the widget. And yes, I've done that much. Unless something has changed recently, I eventually have to call app.exec_(), which would block until last window has closed... I seems the previous email of calling eval() might be the right route. - Or

[PyQt] Populating a listWidget with a list of files

2010-03-03 Thread jaybstory
Hello, I wanted to know how to have a list widget contain a list of files. Basically, I want to be able to give a path to a list of video files and have the video file names displayed in a list widget. Then I want the user be able to click a file which will open an external program. I can alre

Re: [PyQt] Limit the height of a Layout

2010-03-03 Thread Matt Smith
You should be able to 'setMaximumHeight' you can also use the setSizePolicy and set the widgets size policy to what you want. And there is a method for QBoxLayout where you set the 'stretch factor' when you add a widget, so that certain widgets will stretch preferentially to others. Maybe you cou

Re: [PyQt] QAbstractItemModel's "dataChanged" signal not working?

2010-03-03 Thread Claudio Felix
2010/3/2 Mark Summerfield : > On 2010-02-27, Claudio Felix wrote: >> Hi everyone, >> >> I'm using a QSqlRelationalTableModel for a simple dialog where I can >> add/delete periods related to a particular customer, which is chosen >> by a QComboBox. The periods table is filtered by customer (whose ID

Re: [PyQt] Help QX11 in pyqt

2010-03-03 Thread David Boddie
On Wed Mar 3 12:51:32 GMT 2010, Anshul Jain wrote: > I wanted to know how can I use the QX11EmbedContainer/ QX11EmbedWidget > class in Mac OSX or windows. I know X11 is not supported by them by > default. You can't use the QX11Embed* classes on Mac OS X or Windows using native builds of PyQt. >

Re: [PyQt] Limit the height of a Layout

2010-03-03 Thread starglider develop
Hi Doug, that's it I never try the setMaximumHeight because it only for widget and the layouts are not widget, but if I limit the height/width of every widget belonging to the layout I get the result I want! Thank for your help. Regards, Jorge On 3 March 2010 13:33, Doug Bell wrote: > stargli

Re: [PyQt] SIP and Q_PROPERTY

2010-03-03 Thread Phil Thompson
On Wed, 03 Mar 2010 12:55:33 -0500, Josh wrote: > Hi, > > I've been handed a Qt widget class (C++) that has several Q_PROPERTYs. > I'm working on the sip file to wrap the class but can't find any info > (in SIP docs or google) on how to wrap a Q_PROPERTY with SIP. > > Is there a way to do this

[PyQt] SIP and Q_PROPERTY

2010-03-03 Thread Josh
Hi, I've been handed a Qt widget class (C++) that has several Q_PROPERTYs. I'm working on the sip file to wrap the class but can't find any info (in SIP docs or google) on how to wrap a Q_PROPERTY with SIP. Is there a way to do this with SIP? Do I even need to? The Q_PROPERTYs' getters & set

Re: [PyQt] Pyuic4 bug in PyQt4 snapshot?

2010-03-03 Thread Phil Thompson
On Wed, 3 Mar 2010 16:02:05 +0200, Umit Oztosun wrote: > Hello, > > I tried the latest PyQt4 snapshot together with the latest Sip snapshot. I > noticed a problem with the order of QSpacerItem parameters. Attached are a > test ui file, together with outputs of pyuic4 4.7 and > snapshot-4.7.1-307e

Re: [PyQt] Limit the height of a Layout

2010-03-03 Thread Demetrius Cassidy
It's generated code - it's not supposed to be pretty. All you do is import the gui code from your dialog class which is in a separate file. It keeps things clean and simple, and you won't have to start looking around APIs for stuff that QtDesigner does for you. On 3/3/2010 6:56 AM, starglider

[PyQt] Pyuic4 bug in PyQt4 snapshot?

2010-03-03 Thread Umit Oztosun
Hello, I tried the latest PyQt4 snapshot together with the latest Sip snapshot. I noticed a problem with the order of QSpacerItem parameters. Attached are a test ui file, together with outputs of pyuic4 4.7 and snapshot-4.7.1-307e5cccaf6c. A quick diff reveals: 5,6c5,6 < # Created: Wed Mar 03 15:

Re: [PyQt] Limit the height of a Layout

2010-03-03 Thread Doug Bell
starglider develop wrote: > Thank you for your replay, but I'm doing everything by code, > I try to simulate a form with QtDesigner but the genereted code is a mess. Have you tried QWidget.setMaximumHeight(int) ? Doug > On 3 March 2010 01:37, wrote: > > > Are you using QtDesigner? You can set

[PyQt] Help QX11 in pyqt

2010-03-03 Thread Anshul Jain
Hello. I wanted to know how can I use the QX11EmbedContainer/ QX11EmbedWidget class in Mac OSX or windows. I know X11 is not supported by them by default. Alternatively can anyone suggest me how can I create a process for each tab i create in my application. This is possible using the QX11EmbedCon

Re: [PyQt] Limit the height of a Layout

2010-03-03 Thread starglider develop
Thank you for your replay, but I'm doing everything by code, I try to simulate a form with QtDesigner but the genereted code is a mess. Regards, Jorge On 3 March 2010 01:37, wrote: > Are you using QtDesigner? You can set the min and max size for each widget, > so I'd probably look at that. > -

Re: [PyQt] Help: packaging PyQt app

2010-03-03 Thread Ruslan Popov
Could someone tell me how to convert python package (python setup.py On Tue, Mar 2, 2010 at 8:10 PM, Scott Ballard wrote: > You need to include sip: > http://www.py2exe.org/index.cgi/Py2exeAndPyQt > > from distutils.core import setup > import py2exe > setup(windows=[{"script":"main.py"}], option

Re: [PyQt] Is there a way to run the interp AND a gui?

2010-03-03 Thread Phil Thompson
On Tue, 2 Mar 2010 15:04:37 -0800 (PST), Jason H wrote: > I am working on the new Qt/Kinetic stuff and one thing I would really like > to have is an interactive GUI for it. Ideally, I'd have something like the > interactive interpreter, which when I type x=QGrahpicsTextItem(...) and add > it to th