[PyQt] methods with "def on_"

Phil Thompson phil at riverbankcomputing.com
Thu Feb 7 17:37:15 GMT 2008


On Thursday 07 February 2008, Enis Karaarslan wrote:
> I am a newbie, so a simple question I guess.
> I am inheriting the design from the design file "anasayfa.ui" and using in
> my new class.
>
> I used the on_ method, instead of using signal-action way in
> the "QlistWidget", and it works fine,
>
> 	def on_listWidget_itemClicked(self, item):
> 		....
>
> but couldn't use it in the Qradiobutton and ComboBox, what am I doing
> wrong?
>
> 	def on_radiobutton_4_Clicked(self):

The signal is called clicked, not Clicked.

> 	def on_actionComboBox_itemSelected(self,item):

QComboBox doesn't have a signal called itemSelected.

Phil


More information about the PyQt mailing list