Re: [PyQt] item selection in a graphicsscene

2012-09-15 Thread Matteo Boscolo
Have a look at http://pythoncad.git.sourceforge.net/git/gitweb.cgi?p=pythoncad/pythoncad;a=blob;f=PythonCAD/Interface/cadscene.py;h=77cf54b821f244975372ed2d025c9c7a90033247;hb=refs/heads/R38 regards, Matteo Il 14/09/2012 23:28, Martin Airs ha scritto: good day all, I'm currently writing a

[PyQt] Loose com pointer when open a qt window

2011-12-07 Thread Matteo Boscolo
Hi all, I need some help or idea to a com problem.. I got this class: class foo(object): def setComObject(comObject): self.comO=comObject #This is a com object from a cad application def showForm(self) # use the self.comO to read some information from the cad

Re: [PyQt] PyQt4.Gui.QFileDialog

2011-10-31 Thread Matteo Boscolo
with this configuration Python 2.6.6 PyQt4 4.7.3 open dialog dialog finished C:\Users\mboscolo\Documents\.bzr.log finished it works perfectly .. after press the opendialog the form is closed and start to print the rest of the debug regards, Matteo Il 31/10/2011 08:07, Janwillem ha scritto:

Re: [PyQt] PyQt4.Gui.QFileDialog

2011-10-31 Thread Matteo Boscolo
, Janwillem Matteo Boscolo wrote: with this configuration Python 2.6.6 PyQt4 4.7.3 open dialog dialog finished C:\Users\mboscolo\Documents\.bzr.log finished it works perfectly .. after press the opendialog the form is closed and start to print the rest of the debug regards, Matteo Il 31/10/2011 08:07

[PyQt] PythonCAD at europython2011 in Floarance

2011-05-15 Thread Matteo Boscolo
Hi All, I'm Glad to say that I'll be at europython2011 for talking abut pythoncad. here you have all the schedule: http://ep2011.europython.eu/p3/schedule/ep2011/ and here you get the talk: http://ep2011.europython.eu/conference/talks/developing-a-cad-application-as-hobby This will be an

Re: [PyQt] win32gui.SetParent method with pyqt

2011-05-03 Thread Matteo Boscolo
(QMessageBox.Information) msg.exec_() .. ... the ClientInterface in this case is an hidden object that wrap around the mfc main application. Hope that helps someone .. Regards, Matteo Il 03/05/2011 12:29, Matteo Boscolo ha scritto: Hi All, I got a win mfc application and I have extended

[PyQt] Problem on qt label

2011-03-26 Thread Matteo Boscolo
Hi all, I have a QDialog in witch I put a qtreeview and a label. the datamodel of the qtreeview contains a field that is bite array that rappresent a bitmap. if I run the stand alone dialog the label will be update when I click on the qtreeview row with the relative bitmap. if I run this

[PyQt] DataGrid with pyqt and xml-rpc

2011-02-12 Thread Matteo Boscolo
Hi All, there is any fast way to get a sort of datagrid widget (like datagrid in m$) in pyqt that works with xml-rpc protocol ? Regards, Matteo ___ PyQt mailing listPyQt@riverbankcomputing.com

Re: [PyQt] printing in Windows not working - tested on Vista 32 bits

2011-01-02 Thread Matteo Boscolo
this is the code that I use in my application to do the print of a QGraphicsView: printer=QtGui.QPrinter() printDialog=QtGui.QPrintDialog(printer) if (printDialog.exec_() == QtGui.QDialog.Accepted): painter=QtGui.QPainter() painter.begin(printer)

[PyQt] ANN : New PythonCAD Alfa Version

2010-12-15 Thread Matteo Boscolo
Hi All, From Last week the new Alfa version of PythonCAD is available from the official web site : https://sourceforge.net/projects/pythoncad/ For any issue or problem related to the installation feature, please feel free to call me .. Regards, Matteo

[PyQt] Strange crash with pan on qtghraphichview

2010-11-29 Thread Matteo Boscolo
Hi All, I got some strange crash in my qt open source application PythonCAD. I have implemented QGraphicsView and QGraphicsScene to render the line arc ellipse .. of my application. Randomly I have some crash from the qt library and I can't make any debug on it because the crash is not on the

[PyQt] Preview of a QtGraphicsItem

2010-07-26 Thread Matteo Boscolo
Hi all, I'm developing a cad application with pyqt: PythonCad I get some truble(crash,Sometimes the line is not rendered,..) creating a preview system for rendering the QtGraphicsItem during the command execution. I follow this steps to create the preview. When the user execute a command es:

Re: [PyQt] Bug with QWidget masks in QGraphicsScene?

2010-06-11 Thread Matteo Boscolo
Hi Jeremy, I did some test and I notice that if you use the .. graphics_view.setMask() you get the get some problem. I do not why The view work in this way..I'm not so skilled in qt to help you. But a work around could be: graphics_scene.mousePressEvent =myMouseEvent #to get the mouse click

[PyQt] How to Manage highlight on QGraphicsView

2010-06-09 Thread Matteo Boscolo
Hi all, I have done an implementation of a QGraphicsView that allows me to highlight the QGraphicsItem. Each QGraphicsItem overwrite the following method: Class Circle(QtGui.QGraphicsItem): .. def hoverEnterEvent(self, event): self.setHiglight() #this set the highlight color