Re: [PyQt] refresh 3dplot

2011-02-08 Thread Massimo Di Stefano
w the plot is refreshed ok :-) Il giorno 08/feb/2011, alle ore 10.35, Massimo Di Stefano ha scritto: > hello All > > have you never tried to embed a matplotlib 3d graph inside pyqt ? > > i'm tring to do it .. but i've problenms to refresh my plot. > > The 3d d

[PyQt] refresh 3dplot

2011-02-08 Thread Massimo Di Stefano
hello All have you never tried to embed a matplotlib 3d graph inside pyqt ? i'm tring to do it .. but i've problenms to refresh my plot. The 3d data are displayed ok inside a pyqt simple widget, but if i try to redraw the image (re-call the on_draw function) ... i have it overlay the previous

Re: [PyQt] display QImage using QtPainter

2011-01-05 Thread Massimo Di Stefano
rgbArrayToImage(self.PILimage) self.__PIL2Qt(self.PILimage) thanks to All !!! Massimo. Il giorno 05/gen/2011, alle ore 22.46, Massimo Di Stefano ha scritto: > hello All, > > i'm tring to use QtPainter to display a QImage object > this is my paint event : > >

[PyQt] display QImage using QtPainter

2011-01-05 Thread Massimo Di Stefano
hello All, i'm tring to use QtPainter to display a QImage object this is my paint event : def paintEvent(self, event): painter = QPainter(self) painter.fillRect(event.rect(), QBrush(Qt.black)) image = self.receiver.getimage() print image , 'passed' im

Re: [PyQt] pyuic error

2010-11-04 Thread Massimo Di Stefano
Thanks ! i updated pyqt to 4.8.1 pyuic now works fine :-) Ciao, Massimo. Il giorno 04/nov/2010, alle ore 13.30, Phil Thompson ha scritto: > On Thu, 4 Nov 2010 13:27:13 +0100, Massimo Di Stefano > wrote: >> Hello All, >> >> tring to run pyuic on a .ui file generat

[PyQt] pyuic error

2010-11-04 Thread Massimo Di Stefano
Hello All, tring to run pyuic on a .ui file generated by Qt-Designer, i had this error : http://paste.debian.net/99004/ the same .ui file worked fine some weeks ago :-/ i'm on mac osx running python2.7 Qt-cocoa, pyqt4.8 thanks for any hints on how to fix/debug the problem. the complete log i

[PyQt] QThread - how to comunicate between gui widget and Qthread

2010-09-25 Thread Massimo Di Stefano
Hello All i'm tring to learn how to use Qthreads inside my app, so i wrote this example : (it print out the text from the lineEdit widget, at any "text-changes") import sys from PyQt4 import QtCore, QtGui import time class Gui(QtGui.QWidget): def __init__(self, parent=None):

Re: [PyQt] Drop to system

2010-09-09 Thread Massimo Di Stefano
": app = QApplication(sys.argv) window = TableWidget() window.show() sys.exit(app.exec_()) thanks to All the PyQt community for the powerfull help you provide !!! Happy coding to All, Massimo. Il giorno 09/set/2010, alle ore 19.01, Baz Walter ha scritto: > On 09/09/1

Re: [PyQt] Drop to system

2010-09-09 Thread Massimo Di Stefano
Hello All, David :-) infinite thanks for your powerfull help !!! i tried to apply little changes to the code, so now i'm able to drag n drop a QtLabel as a file.kml :-) : - http://www.geofemengineering.it/dragmime.py tring to learn how to use the Drag class, i tried to hack the "draggablet

Re: [PyQt] Drop to system

2010-09-08 Thread Massimo Di Stefano
Hi All. i'm tring to learn a similar things ... but i can't find a solution yet :-( i wrote a sample code from where i'm tring to start to learn how to implement a drag-ndrop action : import sys import os from PyQt4 import QtCore, QtGui from table_ui import Ui_Form class Gui(QtGui.QWidget, U

[PyQt] pyqt and threds, tring to write a working example

2010-09-03 Thread Massimo Di Stefano
Hello All i'm tring to learn PyQt and how to use it with threads. the sample code is : http://paste.debian.net/87646/ the problem is at line 29 , i need to display in the lineEdit " self.textout2 " the value displayed in " self.textout " to show the value when i stopped the thread : line

Re: [PyQt] build sip and pyqt on osx (unix way, no python framework)

2010-06-01 Thread Massimo Di Stefano
Il giorno 01/giu/2010, alle ore 13.01, Phil Thompson ha scritto: > On Tue, 1 Jun 2010 12:49:16 +0200, Massimo Di Stefano > wrote: >> i tried to remove : >> >> -framework Python >> >> from the file : >> >> PyQt-mac-gpl-4.7.3/designer/Makefil

Re: [PyQt] build sip and pyqt on osx (unix way, no python framework)

2010-06-01 Thread Massimo Di Stefano
collect2: ld returned 1 exit status make[1]: *** [libpythonplugin.dylib] Error 1 make: *** [all] Error 2 i've also tried to add lines like : -L/usr/local/gislib/unix/lib/python2.6 -L/usr/local/gislib/unix/lib/ but nothing changes. Il giorno 01/giu/2010, alle ore 11.31, Phil Thompson

Re: [PyQt] build sip and pyqt on osx (unix way, no python framework)

2010-06-01 Thread Massimo Di Stefano
l/gislib/unix/" is where i'm installing source build libs) ? Il giorno 01/giu/2010, alle ore 10.39, Phil Thompson ha scritto: > On Tue, 1 Jun 2010 10:21:44 +0200, Massimo Di Stefano > wrote: >> Hi, >> >> I'm tring to build sip on mac osx using python com

[PyQt] build sip on osx (unix way, no framework)

2010-06-01 Thread Massimo Di Stefano
Hi, I'm tring to build sip on mac osx using python compiled from source in a standard unix fashon, without framework. i used this line to configure sip : python configure.py -d /usr/local/gislib/unix/lib/python2.6/site-packages -b /usr/local/gislib/unix/bin -e /usr/local/gislib/unix/include -v

Re: [PyQt] pausing and resuming QThread tasks

2010-04-18 Thread Massimo Di Stefano
Hi, i'm tring to modify the code you pasted using the suggested modification, but i'm not able to run it with a "working" pause action. Can you point me to a working version, i'm tring to learn from it. It is a cool example to learn how to use thread in PyQt Thanks a lot!!! Massimo. Il giorn

Re: [PyQt] 64 bits and Snow Leopard make me crazy

2010-02-25 Thread Massimo Di Stefano
l/bin \ -e /usr/local/include -v /usr/local/share/sip --arch=i386 PYQT : python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin --use-arch i386 Il giorno 25/feb/2010, alle ore 15.01, Darren Dale ha scritto: > On Thu, Feb 25, 2010 at 8:33 AM, Massimo Di Stefano > w

Re: [PyQt] 64 bits and Snow Leopard make me crazy

2010-02-25 Thread Massimo Di Stefano
Hi You need the 64bit version of Qt (cocoa) then to build sip and pyqt i used : SIP : python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \ -e /usr/local/include -v /usr/local/share/sip --arch=x86_64 PYQT : python2.6 configure.py -d /Library/Python/2.6/site-packages

[PyQt] problems to setText in a lineEdit widjet

2010-02-25 Thread Massimo Di Stefano
Hi All, I'm tring to embedd a matplotlib_figure + matplotlib_mouse_action inside a pyqt gui the figure i'm plotting is displaied ok in pyqt but i have problems to send the "text" from the mouse action to a line edit. i id an external class delegate to this job, but i'm not a good programmer and

[PyQt] pyqt snapshot problem to read cpu data

2010-02-09 Thread Massimo Di Stefano
Hi All, >the files : http://www.geofemengineering.it/data/qt_proc.py http://www.geofemengineering.it/data/wx_proc.py are 2 examples extracted from a book, they do the same things but the pyqt example give me : Traceback (most recent call last): File "qt_proc.py", line 102, in widget

[PyQt] pyqt 4.7+ on mac osx snow leopard

2010-02-02 Thread Massimo Di Stefano
Hi All, i'm tring to install pyqt on my snow leopard, until the last week i used : Qt-4.6 build from source (-cocoa) and pyqt4.6.2 (all worked fine) for some reason i had to switch to a Qt4-4.6 (dmg installer -64bit) and now tring to install pyqt (i tried both pyqt-4.7 (+sip-4.10) and pyqt-si

[PyQt] osg-python in a pyqt application

2009-12-16 Thread Massimo Di Stefano
Hi, i find an itersting python library that uses osg (openscenegraphic) the libs are avaiable here : http://code.google.com/p/osgboostpython/[ have you any clue on what is needed to run a such 3d viewer engine, inside a pyqt application ? thanks for any hints! Massimo___

Re: [PyQt] Re: build pyqt on mac osx 10.5.6

2009-12-06 Thread Massimo Di Stefano
i download qt source code from : http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.0.tar.gz uninstall the binary qt using its uninstall script : sudo /Developer/Tools/uninstall-qtsdk.py ./configure -opensource -cocoa then i build sip-4.9.3 : python2.6 configure.py -d /Library/P

Re: [PyQt] Re: build pyqt on mac osx 10.5.6

2009-12-06 Thread Massimo Di Stefano
ce it works with no problems. i'm on snow leopard using the system python. thanks! Massimo. Il giorno 06/dic/2009, alle ore 22.41, Mitchell L Model ha scritto: >> Date: Sun, 6 Dec 2009 04:03:11 +0100 >> From: Massimo Di Stefano >> Subject: [PyQt] build pyqt on mac

Re: [PyQt] build pyqt on mac osx 10.5.6

2009-12-06 Thread Massimo Di Stefano
Ok guys, installing the stable release for sip and pyqt instead of the snapshot version now all compile and works fine! thanks! Massimo. Il giorno 06/dic/2009, alle ore 04.03, Massimo Di Stefano ha scritto: > hi, > > have you any clue about this error > > http://paste.d

[PyQt] build pyqt on mac osx 10.5.6

2009-12-05 Thread Massimo Di Stefano
hi, have you any clue about this error http://paste.debian.net/53267/ g++ -c -pipe -fno-strict-aliasing -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.6.0/mkspecs/macx-g++ -I. -I/usr/lo

[PyQt] PyQt4, Qt on osx SnowLeopard

2009-11-17 Thread Massimo Di Stefano
Hi, Starting on a fresh osx Snow Lepoard installation, what it the procedure to follow to have pyqt up and running ? i tried to Qt-4.5.3 installer, but it fails with a nerror (no succesfull installation) So i tried the last Qt4.6 release candidate (i choose the sdk big download) it install with

Re: [PyQt] Re: connection between 2 widget

2009-06-24 Thread Massimo Di Stefano
et too. thanks again!!! regards, Massimo Il giorno 22/giu/09, alle ore 20:01, David Boddie ha scritto: On Sun Jun 21 17:37:54 BST 2009, Massimo Di Stefano wrote: I'm tring to get a solution, i searced for similar code in the pyqt examples source code but i can't find nothig simi

[PyQt] Re: connection between 2 widget

2009-06-21 Thread Massimo Di Stefano
I'm tring to get a solution, i searced for similar code in the pyqt examples source code but i can't find nothig similar. is the question i proposed comprensible? i hope some one can help me, thanks a lot to All! regards, Massimo Il giorno 19/giu/09, alle ore 01:24, Massimo Di

[PyQt] connection between 2 widget

2009-06-18 Thread Massimo Di Stefano
Hi All, i'm tring to connect 2 widget but i havo problems to know how to do it. i can reproduce my problem with an example : W-1 (spinbox + button) [ it is a main app, and has in the menu bar an action to open W-2] W-2 (line edit + button) i run W-1, pressing its button it increase the s

[PyQt] PyQwt on mac osx (designer + pyuic4 error)

2009-06-01 Thread massimo di stefano
of pyuic4 (use the -d flag when calling pyuic4) i uploaded the -d log and the .ui file here : http://www.geofemengineering.it/data/pyuic4__log.txt http://www.geofemengineering.it/data/planetsashaui.ui thanks to All for any suggestion on how to debug this problem! regards, Massimo

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

2009-04-05 Thread massimo di stefano
uot;non programmer") and compare the class and methods used to in your python-code. . really thanks for the help !!! have good Q-time :-) Massimo Di Stefano massimodisa...@yahoo.it epifanio on irc.freenode.net /join gfoss Il giorno 06/apr/09, alle ore 00:04, Hazen Babco

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

2009-04-05 Thread massimo di stefano
now i need to stop it when i "release" the button, tried with : self.connect(self.gcenter, QtCore.SIGNAL("released()"), self.thread.quit) but give : AttributeError: stop Il giorno 05/apr/09, alle ore 19:56, massimo di stefano ha scritto: Hi All, i'm doing

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

2009-04-05 Thread massimo di stefano
ui() gui.show() sys.exit(app.exec_()) as you can see the gui do not exit from the "while" statment and it freeze ... i know, i need to learn more about QTrhead usage... an example on how to change the previouse code, will give me a great help! thanks for help me !!!

Re: [PyQt] tooltips in menu: how?

2009-03-18 Thread massimo di stefano
Hi Paolo, i runned your code here on a mac osx, python2.5, qt-4.4.3, pyqt4.4.4 seems it works properly, i can see tooltips : <> <> Massimo Di Stefano massimodisa...@yahoo.it epifanio on irc.freenode.net /join gfoss Il giorno 18/mar/09, alle ore 18:21, Paolo Milan

Re: [PyQt] Build problem : Pyqt-4.5 on mac osx Leopard

2009-03-12 Thread massimo di stefano
ok, the simlink did the job :-) now qt-4.5 sip-4.8-snapshot-20090311 PyQt-mac-gpl-4.5-snapshot-20090311 are compiled on osx. i'll try to run some examples to see if all woks fine :-) thanks for the help! Massimo Di Stefano massimodisa...@yahoo.it epifanio on irc.freenode.net /join

[PyQt] Build problem : Pyqt-4.5 on mac osx Leopard

2009-03-12 Thread massimo di stefano
y) make[1]: *** [QtHelp.so] Error 1 make: *** [all] Error 2 at these link a text file with the complete log fro sip and pyqt build : http://www.geofemengineering.it/data/pyqt_osx_build.log Thanks a lot for any help! regards, Massimo Di Stefano massimodisa...@yahoo.it epifanio on irc.freenode.

[PyQt] PyQt , trhead , asyncronous gui (newbie needs help)

2008-09-23 Thread Massimo Di Stefano
Hi, i've a problem, i'm tring to add a "start/stop" action on a simple gui, i can generalize the problem using these code : import sys, time, threading, Queue from PyQt4 import QtCore, QtGui from PyQt4.QtGui import * from PyQt4.QtCore import * class GuiPart(QtGui.QWidget): def __init

[PyQt] convert an old pyqt script to a newer PyQt4 version

2008-05-25 Thread Massimo Di Stefano
Hi i'm relative new to qt-pyqt i'm not a developper, but for my study (and passion) i need to learn about. in these days i'm tring to know how to work with asyncronous data, ma targhet is to make a gui to display data that come from a serial port. to do these .. googling i find a script

Re: [PyQt] file dialog as input to io.read.array in scipy

2007-10-29 Thread massimo di stefano
Hi, i solved my issue: i changed in my module the line : from L = io.read_array(input_uno) to L = io.read_array(str(input_uno)) now all works fine :-) now read_arra is able to read the file, passed as string from the gui. thanks to python and qt people that helped me!!! ci

Re: [PyQt] file dialog as input to io.read.array in scipy

2007-10-28 Thread massimo di stefano
Apologize me for a little sintax error in the previouse post , i corrected it to : Il giorno 29/ott/07, alle ore 03:28, massimo di stefano ha scritto: hi, i'm tring to write a gui for a python module, the module run fine in the python shall. i'm using it in this manner : f

[PyQt] file dialog as input to io.read.array in scipy

2007-10-28 Thread massimo di stefano
hi, i'm tring to write a gui for a python module, the module run fine in the python shall. i'm using it in this manner : from affine import affine print affine('/path/tu/file_1', '/path/tu/file_2', '/path/tu/file_3', '/path/tu/file_3') the module affine is : #!/usr/bin/env python from