[PyQt] Range slider?

2009-03-22 Thread Hazen Babcock
Hello, Does anyone know if a widget like this: http://www.codeproject.com/KB/miscctrl/CRangeSlider/CRangeSlider.gif exists for Qt? This being the slider in the upper left corner of the image which lets the user define a range or interval. If not, any suggestions on how to go about creating o

Re: [PyQt] thread in pyqt ... simple example needed

2009-04-05 Thread Hazen Babcock
massimo di stefano wrote: .. done little step ahead : import sys from PyQt4 import QtCore, QtGui import time class MyThread(QtCore.QThread): def run(self): n = 0 step = 1 while True: n += step print n class Gui(QtGui.QWidget): def __

Re: [PyQt] thread in pyqt ... simple example needed

2009-04-05 Thread Hazen Babcock
Arnold Krille wrote: On Sunday 05 April 2009 21:29:44 Hazen Babcock wrote: I'd suggest expanding your MyThread class to something like this: class MyThread(QtCore.QThread): def __init__(self, parent = None): QtCore.QThread.__init__(self, parent) self.running = 1

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 no

[PyQt] help needed with SIP

2009-04-25 Thread Hazen Babcock
Hello, I'm trying to use SIP to wrap a Qt widget provided by the PLplot plotting library. The Qt widget driver library is located here: /usr/local/lib/plplot5.9.2/driversd/qt.so The plplot library itself is located here: /usr/local/lib/libplplotd.so And the header file for qt.so in here: /usr

[PyQt] sip & dynamic_cast

2009-06-29 Thread Hazen Babcock
Hello, I have a custom C++ QtWidget (the QtExtWidget in PLplot) that I am attempting to wrap with sip. I've run into a very puzzling problem where in one function in the program dynamic_cast will properly recognize the PyQt generated C++ widget and in another function it will not. Also, forc

Re: [PyQt] Problem regarding setting text of QTextEdit in a separate thread

2009-07-08 Thread Hazen Babcock
Shine Jose wrote: Hello friends, I am writing an application to read data from serial port and display it on the screen using a QTextEdit widget. Since I'll have to poll the serial port to check for arrival of data, I have created the widgets in the main thread of the program and created a se

[PyQt] ActiveX Question

2009-12-02 Thread Hazen Babcock
Hello, Does anyone know the right way to call a ActiveX function that expects to get a argument by reference? For example, if there is a function called "getPosition(double *)" how do I call this function? I thought that I was close with: pos = -1.0 self.dynamicCall('getPosition(double &)',

[PyQt] Compiling PyQt with QAxContainer

2010-02-03 Thread Hazen Babcock
Hello, If I install PyQt (on Windows) using the installer then I can use QAxContainer classes for accessing ActiveX controls. If I try to compile from source using GPL PyQt (4.6.2), Python 2.6, Sip (4.9.3), MinGW (5.1.4) and Qt (2009.05) then the QAxContainer classes do not get compiled and

Re: [PyQt] help a noob, Im a noob

2013-07-12 Thread Hazen Babcock
On Tue, 9 Jul 2013 15:00:25 -0600 (MDT), Brian McDonald wrote: Just getting into programming in general. Loving python so far. I am working on an application that will display database information on screen. The idea is that some rows of database information will appear on screen for 30 seconds