Re: [PyQt] Accessing a toggle button without clicking on it

2013-07-09 Thread Giuseppe Corbelli
) self.pushButton.click() should do. -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666318 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com ___ PyQt mailing listPyQt@riverbankcomputing.com http

Re: [PyQt] Old style signal/slot bug on win32

2013-05-27 Thread Giuseppe Corbelli
s a slot in QCoreApplication to the sample_completed signal and emits it In short I expect the ::receivers() to be ALWAYS 1. grep 'receivers: "2"' nexplode.txt yields different results on win32 and linux. On linux I always get 'receivers: "1"' while on wi

[PyQt] Old style signal/slot bug on win32

2013-05-23 Thread Giuseppe Corbelli
receive logs and 1 single receiver. Attached python and c++ examples. Python program uses an "nexplode.txt" logfile in append mode, while C++ uses qDebug() -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666318 Fax: +390302659932 E-mail: giusep

Re: [PyQt] moveToThread() does not cope with functools.partial

2013-04-29 Thread Giuseppe Corbelli
.start() app.exec_() Get this output: INFO:blah:Main thread ID 3075479232 DEBUG:blah:__call__ 3075479232 DEBUG:blah:call 3042327408 DEBUG:blah:__call__ 3075479232 DEBUG:blah:call 3042327408 DEBUG:blah:__call__ 3075479232 DEBUG:blah:call 3042327408 -- Giuseppe Corbelli WASP Software Engine

Re: [PyQt] moveToThread() does not cope with functools.partial

2013-04-29 Thread Giuseppe Corbelli
QtCore.Qt.QueuedConnection) QtCore.QObject.connect(app, app.signature_noargs, receiver_partial_proxy, QtCore.Qt.QueuedConnection) timer = QtCore.QTimer() timer.setInterval(1000) timer.timeout.connect(app.emit_noargs) timer.start() app.exec_() -- Giuseppe Corbelli WASP Software Engineer, C

Re: [PyQt] moveToThread() does not cope with functools.partial

2013-04-23 Thread Giuseppe Corbelli
her pointer to look at? -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666318 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.ri

[PyQt] moveToThread() does not cope with functools.partial

2013-04-23 Thread Giuseppe Corbelli
ction) timer = QtCore.QTimer() timer.setInterval(1000) timer.timeout.connect(app.mysignal.emit) timer.start() app.exec_() -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666318 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com ___

[PyQt] QSignalMapper (again)

2013-02-05 Thread Giuseppe Corbelli
e.QT_VERSION_STR >>> QtCore.QT_VERSION_STR '4.8.2' >>> QtCore.PYQT_VERSION_STR '4.9.6' Is it possible to fix this? I just don't know enough of SIP to be of any help, sorry. -- Giuseppe Corbelli WASP Software Engineer, Copan Ital

Re: [PyQt] QFileSystemWatcher triggering too many signals

2013-01-21 Thread Giuseppe Corbelli
rd things to files, but cp and cat? Is this behavior considered normal? No answer on top of my mind, but I'd run all the commands (cp, vi, jo, cat) under strace and see all the related syscalls. Won't be surprised if the *notify system has some hooks related to common syscalls. --

Re: [PyQt] QTerminate and Python libs?

2013-01-10 Thread Giuseppe Corbelli
he event loop to exit cleanly. If the event loop does not get called because i.e. the thread is blocked in an IO operation this call apparently does nothing. -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666318 Fax: +390302659932 E-m

Re: [PyQt] recommendations for automatic testing of pyqt applications

2012-07-25 Thread Giuseppe Corbelli
with an external entity. I don't know anything under *nix, but for win32 you may try: http://code.google.com/p/pywinauto/ http://code.google.com/p/swapy/ -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666318 Fax: +390302659932 E-m

[PyQt] Debugging a segfault on win32/msvc

2012-06-21 Thread Giuseppe Corbelli
should be applicable. Well, I'm not an expert in the QT internals and I know this isn't exactly the right mailing list, but any suggestion would be appreciated :-) -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +390302659

[PyQt] Weird problem with time change and resources

2012-04-06 Thread Giuseppe Corbelli
resources the problem is solved. Of course just moving the clock by hand does not reproduce the problem :-) Hope you have some ideas... -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +390302659932 E-mail: giuseppe.corbe...@copan

Re: [PyQt] Weird pyqtSignal behaviour

2011-07-04 Thread Giuseppe Corbelli
>> k = CX() > > > Using latest stable SIP and PyQt4 with Qt 4.7.2 Meaning 4.8.4 and 4.12.3? -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com ___

Re: [PyQt] Weird pyqtSignal behaviour

2011-06-27 Thread Giuseppe Corbelli
On 27/06/2011 17:23, Giuseppe Corbelli wrote: > Hi all > > I have two boxes: > Linux with PyQt-GPL 4.8.3/Qt 4.7.0/Python 2.6.6 > Windows 7 with PyQt-Commercial 4.8.4/Qt 4.7.3/ActivePython 2.6.6.18 Forgot: sip 4.12.1 on Linux machine sip 4.12.3 on Linux machine -- Gi

[PyQt] Weird pyqtSignal behaviour

2011-06-27 Thread Giuseppe Corbelli
Traceback (most recent call last): File "test_signal.py", line 13, in k = CX() File "test_signal.py", line 11, in __init__ print self.asig TypeError: pyqtSignal must be bound to a QObject, not 'CX' -- Giuseppe Corbelli WASP Software Engineer,

Re: [PyQt] Pylupdate4 does not parse tr(u"") ?

2011-06-13 Thread Giuseppe Corbelli
On 10/06/2011 10:52, Giuseppe Corbelli wrote: > So it seems that pylupdate4 does NOT parse tr(u"") stuff. Is it by design? > Sorry but I can't dive into it at present. Seems that I was right, rare stuff indeed. Look into pylupdate/fetchtr.cpp, around line 380 You will se

Re: [PyQt] Pylupdate4 does not parse tr(u"") ?

2011-06-11 Thread Giuseppe Corbelli
On 10/06/2011 19:46, Detlev Offenbach wrote: > On Freitag, 10. Juni 2011, Giuseppe Corbelli wrote: >> Hi all >> I have a couple of classes like these: >> >> class CAntibiogram_AlarmData(WaspCore.Common.Alarm.CAlarmData): >> __alarm_name__ = "ALARM_

[PyQt] Pylupdate4 does not parse tr(u"") ?

2011-06-10 Thread Giuseppe Corbelli
cription': tr(u"Tavola Antibiogramma"), 'active': True } When I run pylupdate4 -verbose WaspCore/Alarms/BATable.py -ts test.ts I get Updating 'test.ts'... Found 2 source texts (0 new and 2 already existing) So it seems that pylupdate4 does NOT parse

[PyQt] Problem with pyrcc / compression

2011-03-15 Thread Giuseppe Corbelli
. However, when I run the (also attached) test.py, nothing is returned. The resource is opened but appears to be empty. If I run pyrcc4 without compression everything works fine. -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +3903026599

[PyQt] Patch for pylupdate4 / sourcelanguage attribute

2011-03-03 Thread Giuseppe Corbelli
"version" attribute to 2.0 (not sure if this is a good idea :-) don't want to keep a nonstandard tree. -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com --- PyQt-x11-gpl-

Re: [PyQt] Problems with UTF-8 characters in UI / pyuic4

2011-01-26 Thread Giuseppe Corbelli
.1 is working fine. Sorry :-( -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.rive

[PyQt] Problems with UTF-8 characters in UI / pyuic4

2011-01-21 Thread Giuseppe Corbelli
nd this solves my issue ONLY IF the text is marked as "Translatable". If the "Translatable" is OFF the prop.text is not unicode and so the string contains some random shit depending on locale and whatever. This will need some more work... -- Giuseppe Corbelli WASP So

Re: [PyQt] Error in calling QSignalMapper.__bases__

2010-11-09 Thread Giuseppe Corbelli
27;QWidget*' is not supported as a native Qt signal > type >> >> This error did NOT occur with Qt 4.6 and PyQt 4.7.7. > > The problem is unique to QSignalMapper. The workaround is to import QtGui.. The workaround works :-) Any idea where the problem may lie? -- G

[PyQt] Error in calling QSignalMapper.__bases__

2010-11-08 Thread Giuseppe Corbelli
give some more hints... BTW, is there a way to access older releases? -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com ___ PyQt maili

[PyQt] layoutStretch property is sometimes not compiled by pyuic4

2010-09-23 Thread Giuseppe Corbelli
makes some sense... -- Giuseppe Corbelli WASP Software Engineer, Copan Italia S.p.A Phone: +390303666104 Fax: +390302659932 E-mail: giuseppe.corbe...@copanitalia.com --- uic/uiparser_orig.py2010-09-20 12:14:04 + +++ uic/uiparser.py 2010-09-22 13:44:27 + @@ -406,14 +4