Monkey Studio IDE The way IDEs should be

Question from a newbie about signal & slots

Hello,

I'm new to using a IDE for programming in Python. At first sight: very nice program.

But now my first problem:

I am trying the example on this site: http://code.google.com/p/monkeystudio/wiki/PythonProject.
Made a form and completed the mainwindow.py.
Then opened the form (mainwindow.ui) and tried the Signal/Slot editor. The window opened but it is not possible to edit (+ and - are greyed out).
I suppose I should make something like:
Sender Signal Receiver Slot
pushButton clicked() pushButton click()

Without it I get an error: TypeError: unable to convert a QVariant back to a Python object

But I'm stuck right now. I could sure use a little help!

Thanks in advance,

Bauke (from Holland, so my English is not the best I think)

pasnox's picture

Hi bauke, There is a bug in

Hi bauke,

There is a bug in Mks ( not know truely if Qt or mks ), but it seem Qt Designer plugin and Qt Assistant plugin are not compatible when enabled at the same time.
Please try to disable Qt Assistant plugin, and restart mks.
The toolbar of designer should works fine.

Waiting your feedback ;)

You can seek team on IRC.
If you don't know what is IRC, then go to the IRC page.
If you want an answer, please be explicit and verbose.
Help by email will be ignored.

Indeed, a bug

I did what you said and the little app was running. THANKS!

But entering something gave me an error: TypeError: unable to convert a QVariant back to a Python object.

Any hints?

By the way: Should the signal/slot be the way I said in the first post?

Bauke

pasnox's picture

I should admit that I don't

I should admit that I don't know python, nor PyQt.
Signal/slots are very important thing in Qt programming, and it seem your connection is not right, you should connect pushbutton (sender) with clicked (signal) to a widget class like mainwindow (receiver) and a new slot like void buttonClicked().

If this dos not help u enough, feel free to open a new topic on the forum as this one was more for the designer integration bug.

Regards,

You can seek team on IRC.
If you don't know what is IRC, then go to the IRC page.
If you want an answer, please be explicit and verbose.
Help by email will be ignored.