BlackAdder Signal/Slots question.
Wayne
piercew at hushmail.com
Wed Jul 25 17:40:25 EDT 2001
I installed the Beta 3 of BA today and have been trying to get the
Signal/Slots to work properly (c: at least how I would like it to
work, without any prior Qt programming experience).
I'm on Win2K and create a slot under "Edit...Slots..." which shows up
in the compiled form. But how do I actually add code to the slot?
I've tried extending the slot in a sub-class, chaning the main file
(c: this doesn't work because it gets changed back on the next save)
and can't find any place in the IDE to insert the Python code to run.
I started to put manual "connect()"s in the code right before the
"exec_loop" but didn't think that was a good idea.
When I look at the existing tutorials the signal is assigned in the
code that is automatically generated; however, the slot never shows up
when I select the "Connect Signal/Slot (F3)" button.
I started the form with a basic dialog and have added three lables,
two text fields and two buttons. Right now I'm trying to get one of
the buttons to exit the form with a simple "sys.exit(0)".
Is there anyone out there that would be able to tell me if I am even
close to doing this correctly? Also, is there a better NG to post
these on? I haven't been able to find a NG specific to BA.
Thanks for any help,
Wayne
More information about the Python-list
mailing list