[PyQt] pyqt signals

2010-09-06 Thread lucabe...@libero.it
Hello i have write this but i'm not able to connect the emit of the class Socket to the Form class, can you help me? class Socket(QtNetwork.QTcpSocket): def __init__(self, parent=None): super(Socket, self).__init__(parent) self.connect(self, QtCore.SIGNAL("readyRead()"), self.l

[PyQt] Keypressevent

2010-09-08 Thread lucabe...@libero.it
hello i need to intercept the return and the enter key in a plaintextedit and i have write this def keyPressEvent(self, event): self.plainTextEdit.keyPressEvent(event) if event.key() == QtCore.Qt.Key_Return : print ' return' elif event.key() == QtCore.Qt.Key_

[PyQt] QFtp

2010-10-12 Thread lucabe...@libero.it
Hello i have made a small test using qftp, but i make some error: class Form(QWidget, Ui_Form): """ Class documentation goes here. """ def __init__(self, parent = None): """ Constructor """ super(Form, self). __init__(parent) self.connessione

[PyQt] qtreeview

2010-10-26 Thread lucabe...@libero.it
Hello i can use qtreeview with qtftp (there is some model ready) or i have to use qtreewidget with qftp? Thanks Luca ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] qftp, qtreewidget

2010-10-28 Thread lucabe...@libero.it
Hello i have a problem when i list a dir i do as follow: if i.isDir() : self.e_dir = True valor_nome = QtGui.QTreeWidgetItem() valor_nome.setText(1, i.name()) valor_nome.setText(2, str(i.size())) valor_nome.setText(3, str(i.lastModified()

[PyQt] problem installing pyqt

2010-12-15 Thread lucabe...@libero.it
Hello i'm under windows i have installed sip and qscintila when i try to install pyqt i get this error, can you help me to solve this: unable to create c++ code C:\Documents and Settings\Laboratorio\Desktop\Luca\PyQt-win-gpl-4.7.2>python con figure.py Determining the layout of your Qt installati

[PyQt] 'module' object has no attribute 'StackedWidget'

2011-01-24 Thread lucabe...@libero.it
Hello I have install eric on mac, but when i try to generate dialog code i get this error : 'module' object has no attribute 'StackedWidget' Any Suggest? Python 2.6.1 Qt 4.7.0 PyQt 4.8.2 sip 4.12 QScintilla 2.4.6 eric4 4.4.11 (r3912) Thanks Luca __

[PyQt] get list of object

2011-10-11 Thread lucabe...@libero.it
Hello i have create a simple project useng eric i have 10 line edit called self.lineEdit, self.lineEdit_2 etc now i have a list with 20 string to put in the lineedit for each item in the list i have to do self.lineEdit.settext(list[0]), self. lineEdit_2.settext(list[2]) or there is a easy way?

[PyQt] QSqlDatabase: available drivers: QSQLITE

2008-12-18 Thread lucabe...@libero.it
Hello I need to connect to mysql db but when i try i see that i have only availabe the driver for sqlite, how can i add the mysql driver? Thanks Luca ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listi

[PyQt] QTableView

2008-12-23 Thread lucabe...@libero.it
Hello i have made a connection to a db but in my table nothing is shoe, also not the horizontal header why? # -*- coding: utf-8 -*- """ Module implementing MainWindow. """ from PyQt4.QtGui import QMainWindow from PyQt4.QtCore import pyqtSignature from PyQt4 import * from PyQt4.QtSql import * fr

[PyQt] Moltiple_selection

2009-01-12 Thread lucabe...@libero.it
Hello I have made a groupBox with 3 radioButton, how i can make that more than one radio button can be selected. Regards Luca ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] print a tableview

2009-01-12 Thread lucabe...@libero.it
Can you tell me the best way for print a tableview the only way that i know is to draw all with qpainter and than print in pdf but maybe there is a best way? Thanks Luca ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomput

[PyQt] Get text from plaintextedit

2010-02-10 Thread lucabe...@libero.it
Hello how i can get the text of the plaintextedit. i have try like plaintextedit.text() but don't work Regards Luca ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt