Re: [PyQt] Showing list of widgets

2010-03-25 Thread Gib Bogle
Is this the sort of thing you mean? self.lineEdit_list = self.ui.tabs.findChildren(QtGui.QLineEdit) self.spin_list = self.ui.tabs.findChildren(QtGui.QSpinBox) self.combo_list = self.ui.tabs.findChildren(QtGui.QComboBox) self.widget_list = self.lineEdit_list + self.spin_list + self.combo_list

[PyQt] py2exe and VTK

2010-03-15 Thread Gib Bogle
My Windows application uses PyQt and VTK. When I try to build an executable with py2exe, the following modules appear to be missing: 'libvtkCommonPython', 'libvtkFilteringPython', 'libvtkGenericFilteringPython', 'libvtkGeovisPython', 'libvtkGraphicsPython', 'libvtkHybridPython', 'libvtkIOPyth

Re: [PyQt] VTK in PyQt

2010-03-10 Thread Gib Bogle
I found my mistake, a very basic one. I was using VTKscene = QVTKRenderWindowInteractor(self) but should have been using VTKscene = QVTKRenderWindowInteractor(page_VTK) where page_VTK is the widget I created to display the scene. I apologize for cluttering up the mailing list with my ign

Re: [PyQt] VTK in PyQt

2010-03-10 Thread Gib Bogle
Hi Matt and Bastian, Thanks for your responses. I am now setting the size of the scene: VTKscene = QVTKRenderWindowInteractor(self) VTKscene.Initialize() VTKscene.Start() VTKscene.setGeometry(QtCore.QRect(200, 200, 600, 600)) renWin = VTKscene.GetRenderWindow() This all wor

Re: [PyQt] VTK in PyQt

2010-03-08 Thread Gib Bogle
Perhaps someone will tell me what I'm doing wrong here. I'm trying to create the render window for VTK programmatically, having given up on Qt Designer for the time being. The following code can't be too badly wrong, because it generates no errors - but on the other hand it doesn't display the

Re: [PyQt] VTK in PyQt

2010-03-08 Thread Gib Bogle
Gib Bogle wrote: OK, I located QVTKRenderWindowInteractor.py. I'll see if I can figure out how to use it. Not much success here. I can run the example QVTKRenderWidgetConeExample() from within my Qt GUI program, and it creates its own render window, independent of the Qt window. I ha

Re: [PyQt] VTK in PyQt

2010-03-08 Thread Gib Bogle
Gib Bogle wrote: Is it possible to display a VTK renderer within a Qt page? If so, is there some example code that I could use? OK, I located QVTKRenderWindowInteractor.py. I'll see if I can figure out how to use it. ___ PyQt mailing list

[PyQt] VTK in PyQt

2010-03-08 Thread Gib Bogle
Is it possible to display a VTK renderer within a Qt page? If so, is there some example code that I could use? Thanks Gib ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[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] Slider sender().value()

2010-03-02 Thread Gib Bogle
Russell Valentine wrote: I would suggest sending a small example version of the code that just has enough code to show the problem you are talking about. You also might find the problem when making this small example. I tracked this down. The code (which I didn't write) uses the Qt Undo/Redo

[PyQt] Slider sender().value()

2010-03-01 Thread Gib Bogle
Using PyQt 4.5.4, I'm getting strange behaviour with sliders. Everything works as expected when the slider handle is dragged, but not when the Left/Right keys are used (this is a horizontal slider). What happens here is the Left key works OK, being able to take the value all the way down to 0,

[PyQt] PyQt4.7 and PyQwt5.2.0

2010-02-28 Thread Gib Bogle
I installed the latest PyQt (4.7-1), then PyQwt 5.2.0, which was built with PyQt4.5.4. This line import PyQt4.Qwt5 as Qwt fails to load the DLL. Could this be the result of not using PyQt4 4.5.4? ___ PyQt mailing listPyQt@riverbankcomputing.com