@onlyforpeace wrote:
Hello!
i’ve got one buton on my form,
behind this button there is:def OnbspieceClick(self,sender,e): self.dict_current={} self.dict_current['Client']=self.textbox_client.Text ... self.dict_current['Renfort']=self.textbox_renfort.Text self.Close(2)
but i would like to use this buton 4 times with an arguments more for change the arguments of the
self.close(2)
def OnbspieceClick(self,sender,e,argumentmore): self.dict_current={} self.dict_current['Client']=self.textbox_client.Text ... self.dict_current['Renfort']=self.textbox_renfort.Text if argumentmore==0: self.Close(2) if argumentmore==1: self.Close(3) if argumentmore==2: self.Close(4) if argumentmore==3: self.Close(5)
is it possible?
because when i try it asked me the value ofsender
ande
.
Posts: 1
Participants: 1