[PyQt] Join my network on LinkedIn

2011-09-21 Thread Fabio Mauri via LinkedIn
LinkedIn





Fabio Mauri requested to add you as a connection on LinkedIn:
  
--

I'd like to add you to my professional network on LinkedIn.

Accept invitation from Fabio Mauri
http://www.linkedin.com/e/3fiogj-gsu4t5f3-2q/qruN_W-97m539Ud1_CXNH-Qg5C5ZrnpKp7duMjcDwM/blk/I105741415_65/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYRdBYRcjgNd3sRc359bQwUbldWgQdcbPwQd3cRdPkVczgLrCBxbOYWrSlI/EML_comm_afe/?hs=false&tok=0VC0hRSAkdR4U1

View invitation from Fabio Mauri
http://www.linkedin.com/e/3fiogj-gsu4t5f3-2q/qruN_W-97m539Ud1_CXNH-Qg5C5ZrnpKp7duMjcDwM/blk/I105741415_65/3kSnPkNd34QdPkMckALqnpPbOYWrSlI/svi/?hs=false&tok=0fqFAqDFUdR4U1

--

Why might connecting with Fabio Mauri be a good idea?

Fabio Mauri's connections could be useful to you:

After accepting Fabio Mauri's invitation, check Fabio Mauri's connections to 
see who else you may know and who you might want an introduction to. Building 
these connections can create opportunities in the future.
 
-- 
(c) 2011, LinkedIn Corporation___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] connect problem on windows xp

2010-07-29 Thread Fabio Mauri
I solved the issue following linjunhalida's suggestion:

adding QObject.__init__(self) in the __init__ function of my GUI,
everything turns fine also on windows.

Thank you linjunhalida, and thank you all!

On Thu, Jul 29, 2010 at 4:56 PM, F.A.Pinkse  wrote:
> Hi Fabio
>
> To see you print() statements you need to lauch your script with python
> If you use pythonw the script is lauched and the communication channels are
> closed.
>
> Or you use one of these:
>
>
>    def noneSelected(self):
>        print ("signal catched 2")
>        self.dtype.setText("signal catched 2")
>        msgBox=QtGui.QMessageBox()
>        msgBox.setText("signal catched 2")
>        msgBox.exec()
>
>    def refreshList(self):
>        print ("signal catched 1")
>        self.dtype.setText ("signal catched 1")
>        msgBox=QtGui.QMessageBox()
>        msgBox.setText("signal catched 1")
>        msgBox.exec()
>
> I 'borrowed one of the line/text edit widgets.
> Hope this helps.
>
>
> With best regards,
>
>
> Frans.
>
>
> Op 7/29/2010 12:46 PM, Fabio Mauri schreef:
>>
>> Ok, this below is a minimal example.
>> Launching this (with the gui file attached in the previous mail) in
>> Ubuntu 10.04 I can see the prints on cmdline when clicking on
>> pushbuttons, under windows xp I cannot see them.
>>
>> #!/usr/bin/python
>> from twisted.internet import reactor
>> from coherence.base import Coherence
>> from coherence.upnp.core import utils
>>
>> import sys
>> import time
>> from threading import Thread, Timer
>> from Wdw import Ui_Wdw
>> from PyQt4 import QtGui
>> from PyQt4 import QtCore
>> from PyQt4.QtCore import *
>> from PyQt4.QtGui import *
>>
>> class UPnPgui(QtCore.QObject, Ui_Wdw):
>>
>>     def __init__(self):
>>         self.version = "0.5b"
>>         return
>>
>>     def doConnections(self):
>>         QObject.connect(self.refresh, SIGNAL("clicked()"),
>> self.refreshList)
>>         QObject.connect(self.clearSel, SIGNAL("clicked()"),
>> self.noneSelected)
>>         return
>>
>>     def noneSelected(self):
>>         print "signal catched 2"
>>
>>     def refreshList(self):
>>         print "signal catched 1"
>>
>> if __name__ == "__main__":
>>     app = QtGui.QApplication(sys.argv)
>>     window = QtGui.QWidget()
>>     ui = UPnPgui()
>>     ui.setupUi(window)
>>     ui.doConnections()
>>     window.show()
>>     window.geometry()
>>     window.setWindowTitle(window.windowTitle() + " version " + ui.version)
>>     sys.exit(app.exec_())
>>
>> On Thu, Jul 29, 2010 at 9:32 AM, Sybren A. Stüvel
>>  wrote:
>>>
>>> On Thu, Jul 29, 2010 at 08:59:16AM +0200, Fabio Mauri wrote:
>>>>
>>>> Attached you can find the Ui_Wdw class.
>>>
>>> That wasn't my point. Please make a *minimal* bit of code that shows
>>> your problem.
>>>
>>>> In the last connect, I used a different style because for such a
>>>> reason the QObject.connect() i used in the lines above wouldn't work
>>>> while the signal.connect() does (on Ubuntu 10.04).
>>>
>>> That's strange, as signal.connect() works just fine here (Ubuntu
>>> 10.04).
>>>
>>> Please try to make a minimal example, just one bit of code that shows
>>> the problem.
>>>
>>> --
>>> Sybren Stüvel
>>>
>>> http://stuvel.eu/
>>>
>>> -BEGIN PGP SIGNATURE-
>>> Version: GnuPG v1.4.6 (GNU/Linux)
>>>
>>> iD8DBQFMUS6h8ZTyn8Yy+5MRAqSpAJ9cdL4gUAHDLuTT2pF+4m9BpU3kbACfe9H+
>>> MMM3k69wFanU5O1GktogOlQ=
>>> =wAb4
>>> -END PGP SIGNATURE-
>>>
>>>
>>
>>
>>
>
>
> ___
> PyQt mailing list    p...@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Fabio Mauri
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] connect problem on windows xp

2010-07-29 Thread Fabio Mauri
Ok, this below is a minimal example.
Launching this (with the gui file attached in the previous mail) in
Ubuntu 10.04 I can see the prints on cmdline when clicking on
pushbuttons, under windows xp I cannot see them.

#!/usr/bin/python
from twisted.internet import reactor
from coherence.base import Coherence
from coherence.upnp.core import utils

import sys
import time
from threading import Thread, Timer
from Wdw import Ui_Wdw
from PyQt4 import QtGui
from PyQt4 import QtCore
from PyQt4.QtCore import *
from PyQt4.QtGui import *

class UPnPgui(QtCore.QObject, Ui_Wdw):

def __init__(self):
self.version = "0.5b"
return

def doConnections(self):
QObject.connect(self.refresh, SIGNAL("clicked()"), self.refreshList)
QObject.connect(self.clearSel, SIGNAL("clicked()"), self.noneSelected)
return

def noneSelected(self):
print "signal catched 2"

def refreshList(self):
print "signal catched 1"

if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
window = QtGui.QWidget()
ui = UPnPgui()
ui.setupUi(window)
ui.doConnections()
window.show()
window.geometry()
window.setWindowTitle(window.windowTitle() + " version " + ui.version)
sys.exit(app.exec_())

On Thu, Jul 29, 2010 at 9:32 AM, Sybren A. Stüvel  wrote:
> On Thu, Jul 29, 2010 at 08:59:16AM +0200, Fabio Mauri wrote:
>> Attached you can find the Ui_Wdw class.
>
> That wasn't my point. Please make a *minimal* bit of code that shows
> your problem.
>
>> In the last connect, I used a different style because for such a
>> reason the QObject.connect() i used in the lines above wouldn't work
>> while the signal.connect() does (on Ubuntu 10.04).
>
> That's strange, as signal.connect() works just fine here (Ubuntu
> 10.04).
>
> Please try to make a minimal example, just one bit of code that shows
> the problem.
>
> --
> Sybren Stüvel
>
> http://stuvel.eu/
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFMUS6h8ZTyn8Yy+5MRAqSpAJ9cdL4gUAHDLuTT2pF+4m9BpU3kbACfe9H+
> MMM3k69wFanU5O1GktogOlQ=
> =wAb4
> -END PGP SIGNATURE-
>
>



-- 
Fabio Mauri
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] connect problem on windows xp

2010-07-29 Thread Fabio Mauri
Attached you can find the Ui_Wdw class.
In the last connect, I used a different style because for such a
reason the QObject.connect() i used in the lines above wouldn't work
while the signal.connect() does (on Ubuntu 10.04).
Do you think that this problem is related to the current issue? Anyway
the signals not working are both the ones created with
QObject.connect() and the other ones.

On Wed, Jul 28, 2010 at 7:16 PM, "Sybren A. Stüvel"  wrote:
> On 27-7-2010 10:30, Fabio Mauri wrote:
>> the whole file is quite big, but I think that the following is the
>> interesting part (if you need something more, ask me and I'll post
>> it):
>
> I think we need less, not more. This code won't run anyway, since you
> didn't provide the Ui_Wdw class. Try to create an example that's minimal.
>
>>         QObject.connect(self.refresh, SIGNAL("clicked()"), self.refreshList)
> ...
>>         self.objList.itemDoubleClicked.connect(self.showItem)
>
> Is there a reason that you use one style of connecting in one part of
> your code, and the other a few lines further down?
>
>
>
> Sybren
> ___
> PyQt mailing list    p...@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Fabio Mauri
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'Wdw.ui'
#
# Created: Mon Jul 26 11:08:14 2010
#  by: PyQt4 UI code generator 4.7.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_Wdw(object):
def setupUi(self, Wdw):
Wdw.setObjectName("Wdw")
Wdw.resize(1024, 619)
Wdw.setMinimumSize(QtCore.QSize(1024, 619))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/images/imgs/upnp.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Wdw.setWindowIcon(icon)
self.gridLayout_3 = QtGui.QGridLayout(Wdw)
self.gridLayout_3.setObjectName("gridLayout_3")
self.gridLayout_2 = QtGui.QGridLayout()
self.gridLayout_2.setObjectName("gridLayout_2")
self.label = QtGui.QLabel(Wdw)
self.label.setMinimumSize(QtCore.QSize(120, 0))
self.label.setObjectName("label")
self.gridLayout_2.addWidget(self.label, 4, 0, 1, 1)
self.label_2 = QtGui.QLabel(Wdw)
self.label_2.setObjectName("label_2")
self.gridLayout_2.addWidget(self.label_2, 12, 0, 1, 1)
self.label_3 = QtGui.QLabel(Wdw)
self.label_3.setMinimumSize(QtCore.QSize(0, 250))
self.label_3.setObjectName("label_3")
self.gridLayout_2.addWidget(self.label_3, 14, 0, 1, 1)
self.label_4 = QtGui.QLabel(Wdw)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 16, 0, 1, 1)
self.fname = QtGui.QLabel(Wdw)
self.fname.setMinimumSize(QtCore.QSize(335, 0))
self.fname.setText("")
self.fname.setObjectName("fname")
self.gridLayout_2.addWidget(self.fname, 4, 4, 1, 1)
self.host = QtGui.QLabel(Wdw)
self.host.setText("")
self.host.setObjectName("host")
self.gridLayout_2.addWidget(self.host, 16, 4, 1, 1)
self.verticalLayout = QtGui.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.label_5 = QtGui.QLabel(Wdw)
self.label_5.setObjectName("label_5")
self.verticalLayout.addWidget(self.label_5)
self.time = QtGui.QLineEdit(Wdw)
self.time.setEnabled(True)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.time.sizePolicy().hasHeightForWidth())
self.time.setSizePolicy(sizePolicy)
self.time.setObjectName("time")
self.verticalLayout.addWidget(self.time)
self.gridLayout_2.addLayout(self.verticalLayout, 0, 0, 1, 1)
self.line = QtGui.QFrame(Wdw)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName("line")
self.gridLayout_2.addWidget(self.line, 13, 0, 1, 1)
self.line_2 = QtGui.QFrame(Wdw)
self.line_2.setFrameShape(QtGui.QFrame.HLine)
self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
self.line_2.setObjectName("line_2")
self.gridLayout_2.addWidget(self.line_2, 9, 4, 1, 1)
self.line_3 = QtGui.QFrame(Wdw)
self.line_3.setFrameShape(QtGui.QFrame.HLine)
self.line_3.setFrameShadow(QtGui.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.gridLayout_2.addWidget(sel

Re: [PyQt] connect problem on windows xp

2010-07-28 Thread Fabio Mauri
Bump. Could someone help me about this issue?

On Tue, Jul 27, 2010 at 10:30 AM, Fabio Mauri  wrote:
> Hi,
>
>    the whole file is quite big, but I think that the following is the
> interesting part (if you need something more, ask me and I'll post
> it):
>
> class UPnPgui(QtCore.QObject, Ui_Wdw):
>
>     def __init__(self, sear):
>     self.version = "0.5b"
>     self.s = sear
>     self.serva = [] # services list
>     self.timeout = 0
>     self.val = QRegExpValidator(QRegExp("[0-9]{1,7}"), None)
>     self.refreshing = False
>     self.INTERNAL = 0
>     self.EXTERNAL = 1
>     self.MIN = 2
>     self.MAX = 3
>     self.t = None
>     self.upSer = None
>     self.unlock_t = None
>     return
>
>     def doConnections(self):
>     self.updateThread = myUpdate()
>     QObject.connect(self.refresh, SIGNAL("clicked()"), self.refreshList)
>     QObject.connect(self.clearSel, SIGNAL("clicked()"), self.noneSelected)
>     QObject.connect(self.auto_2, SIGNAL("stateChanged(int)"),
> self.manageAuto)
>     QObject.connect(self.time, SIGNAL("editingFinished()"), 
> self.manageTime)
>     self.objList.itemDoubleClicked.connect(self.showItem)
>     self.updateThread.update.connect(self.autoRefresh)
>     self.updateThread.newTimeout.connect(self.updateThread.updateTimeout)
>     self.manageTime()
>     self.manageAuto(Qt.Checked)
>     # refreshing thread starts..
>     self.updateThread.start()
>     return
>
> ---
>
> if __name__ == "__main__":
>        s = Searcher()
>        searchThread = Thread(target=runSearcher, args=(s,))
>        searchThread.start()
>        app = QtGui.QApplication(sys.argv)
>        window = QtGui.QWidget()
>        ui = UPnPgui(s)
>        ui.setupUi(window)
>        ui.doConnections()
>        window.show()
>        window.geometry()
>        window.setWindowTitle(window.windowTitle() + " version " + ui.version)
>        sys.exit(runApp(app))
>
>
>
> On Tue, Jul 27, 2010 at 10:20 AM, makhamisa senekane
>  wrote:
>>
>> Hi,
>> could you please provide us with your code, because I run most of my 
>> applications on windows XP, and they work very well(using signal/slot 
>> connections).
>> Makhamisa
>>
>> On Tue, Jul 27, 2010 at 10:15 AM, Fabio Mauri  wrote:
>>>
>>> Hi all, I'm trying to get an application run on both windows xp and ubuntu 
>>> 10.04 platforms.
>>> My app imports twisted, coherence and PyQt.
>>> The problem is that under windows XP the signals seems not to be connected 
>>> to slots, even if the QObject.connect() returns True.
>>> Clicking on buttons have no effect.
>>> Any idea?
>>>
>>> Thanks in advance.
>>>
>>> --
>>> Fabio Mauri
>>>
>>> ___
>>> PyQt mailing list    p...@riverbankcomputing.com
>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>>
>>
>> --
>> "No trees were killed in the sending of this message. However a large number
>> of electrons were terribly inconvenienced. "
>
>
>
> --
> Fabio Mauri
>



-- 
Fabio Mauri
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] connect problem on windows xp

2010-07-27 Thread Fabio Mauri
Hi,

   the whole file is quite big, but I think that the following is the
interesting part (if you need something more, ask me and I'll post
it):

class UPnPgui(QtCore.QObject, Ui_Wdw):

    def __init__(self, sear):
    self.version = "0.5b"
    self.s = sear
    self.serva = [] # services list
    self.timeout = 0
    self.val = QRegExpValidator(QRegExp("[0-9]{1,7}"), None)
    self.refreshing = False
    self.INTERNAL = 0
    self.EXTERNAL = 1
    self.MIN = 2
    self.MAX = 3
    self.t = None
    self.upSer = None
    self.unlock_t = None
    return

    def doConnections(self):
    self.updateThread = myUpdate()
    QObject.connect(self.refresh, SIGNAL("clicked()"), self.refreshList)
    QObject.connect(self.clearSel, SIGNAL("clicked()"), self.noneSelected)
    QObject.connect(self.auto_2, SIGNAL("stateChanged(int)"),
self.manageAuto)
    QObject.connect(self.time, SIGNAL("editingFinished()"), self.manageTime)
    self.objList.itemDoubleClicked.connect(self.showItem)
    self.updateThread.update.connect(self.autoRefresh)
    self.updateThread.newTimeout.connect(self.updateThread.updateTimeout)
    self.manageTime()
    self.manageAuto(Qt.Checked)
    # refreshing thread starts..
    self.updateThread.start()
    return

---

if __name__ == "__main__":
s = Searcher()
searchThread = Thread(target=runSearcher, args=(s,))
searchThread.start()
app = QtGui.QApplication(sys.argv)
window = QtGui.QWidget()
ui = UPnPgui(s)
ui.setupUi(window)
ui.doConnections()
window.show()
window.geometry()
window.setWindowTitle(window.windowTitle() + " version " + ui.version)
sys.exit(runApp(app))



On Tue, Jul 27, 2010 at 10:20 AM, makhamisa senekane
 wrote:
>
> Hi,
> could you please provide us with your code, because I run most of my 
> applications on windows XP, and they work very well(using signal/slot 
> connections).
> Makhamisa
>
> On Tue, Jul 27, 2010 at 10:15 AM, Fabio Mauri  wrote:
>>
>> Hi all, I'm trying to get an application run on both windows xp and ubuntu 
>> 10.04 platforms.
>> My app imports twisted, coherence and PyQt.
>> The problem is that under windows XP the signals seems not to be connected 
>> to slots, even if the QObject.connect() returns True.
>> Clicking on buttons have no effect.
>> Any idea?
>>
>> Thanks in advance.
>>
>> --
>> Fabio Mauri
>>
>> ___
>> PyQt mailing list    p...@riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
> --
> "No trees were killed in the sending of this message. However a large number
> of electrons were terribly inconvenienced. "



--
Fabio Mauri
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] connect problem on windows xp

2010-07-27 Thread Fabio Mauri
Hi all, I'm trying to get an application run on both windows xp and ubuntu
10.04 platforms.
My app imports twisted, coherence and PyQt.
The problem is that under windows XP the signals seems not to be connected
to slots, even if the QObject.connect() returns True.
Clicking on buttons have no effect.
Any idea?

Thanks in advance.

-- 
Fabio Mauri
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt