Saad Javed wrote:
The bold was intentional. I was trying to get a shell command (wvdial)
to run when a button is pressed. The error I get is:
Traceback (most recent call last):
File "testgui.py", line 26, in
testgui = TestGui()
File "testgui.py", line 19, in __init__
self.connect(d
I implemented a dial function and passed it to the QtCore.SLOT(), which
worked fine. Thanks everyone!
On Sat, Jan 3, 2009 at 10:33 PM, Kent Johnson wrote:
> On Sat, Jan 3, 2009 at 11:39 AM, Saad Javed wrote:
> > The bold was intentional. I was trying to get a shell command (wvdial) to
> > run w
On Sat, Jan 3, 2009 at 12:28 PM, Alan Gauld wrote:
> I think the SIGNAL('clicked()') bit is probably supposed to be:
>
> SIGNAL('clicked')
I think the parens are correct, see
http://docs.huihoo.com/pyqt/pyqt4.html#id10
Kent
___
Tutor maillist - Tuto
On Sat, Jan 3, 2009 at 11:39 AM, Saad Javed wrote:
> The bold was intentional. I was trying to get a shell command (wvdial) to
> run when a button is pressed. The error I get is:
>
> Traceback (most recent call last):
> File "testgui.py", line 26, in
> testgui = TestGui()
> File "testgui.
"Saad Javed" wrote
self.connect(dial, QtCore.SIGNAL('clicked()'), QtGui.qApp,
QtCore.SLOT(os.system('wvdial')))
TypeError: argument 1 of SLOT() has an invalid type
Was that helpful?
Yes, it confirms my earlier email that you should probably quote
the argument to SLOT()
Alan G.
__
"Saad Javed" wrote
I'm trying to create a simple GUI using pyqt4 in which pressing a
button
causes execution of a system command. Here's the code, please help
me out. I
can't figure out whats wrong. Thanks
Caveat: I have never used Qt in my life so this is based on guesswork
and experience
The bold was intentional. I was trying to get a shell command (wvdial) to
run when a button is pressed. The error I get is:
Traceback (most recent call last):
File "testgui.py", line 26, in
testgui = TestGui()
File "testgui.py", line 19, in __init__
self.connect(dial, QtCore.SIGNAL('c
Saad Javed wrote:
Hi Tutors,
Hi and welcome to the tutor list. We can help you better if you tell us
what the problem is. What did you expect? What did you get?
Most of us don't have the time or energy to read code when we don't
know what we are looking for.
Some of your code is bold. Why?
Hi Tutors,
I'm trying to create a simple GUI using pyqt4 in which pressing a button
causes execution of a system command. Here's the code, please help me out. I
can't figure out whats wrong. Thanks
import sys
import os
from PyQt4 import QtGui, QtCore
class TestGui(QtGui.QWidget):
def __init_