Hi,
I have two modules: Mod1 and Mod2. I want to call the function ‘
ProgressBar’ which is present in Mod1 inside a class
‘clsMain’. In the function ‘ProgressBar’, I set the
increment to the progress bar. The function looks something like this:
def ProgressBar(self,intIncrement):
self.gauge1.SetValue(intIncrement)
It takes integer as an input. Self refers to the frame on
which it is set.
How would I call this function from Mod2???
I have tried this, but its not working!
This function present in Mod2:
def GetUserInfo():
#Call
Function ProgressBar present in Mod1
progress_bar
= Mod1.clsMain(parent)
progress_bar.ProgressBar(20)
The structure of Mod1 is as follows:
class clsMain(wx.Frame):
def
ProgressBar(self,intIncreament):
self.gauge1.SetValue(intIncreament)
Any help is appreciated!!!
Regards,
Rajendra
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***