Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				 koin5848yif you're using instance variables you have to send the instance of ClassA to ClassB koin5848yif you're using instance variables you have to send the instance of ClassA to ClassB
 
 if you use class variables you can access them normaly
- 
				
				 neojoy777408y@NoMad Actually what I need is, I have one function which will be called when a button is clicked. I have to store a value from that function and pass it to another class for execution of the backend. Whenever I am trying to call that variable it is not fetching that value. neojoy777408y@NoMad Actually what I need is, I have one function which will be called when a button is clicked. I have to store a value from that function and pass it to another class for execution of the backend. Whenever I am trying to call that variable it is not fetching that value.
- 
				
				 neojoy777408y@NoMad Well actually I did this also. It is giving a null value which I have set to the global variable. How to create a static variable and modify it? I will store the function value in it and use it in another class. Is that possible? neojoy777408y@NoMad Well actually I did this also. It is giving a null value which I have set to the global variable. How to create a static variable and modify it? I will store the function value in it and use it in another class. Is that possible?
- 
				
				 neojoy777408y@NoMad Will definitely try tommorrow at work and will let you know the results. Thank you very much!!!!!!!!! neojoy777408y@NoMad Will definitely try tommorrow at work and will let you know the results. Thank you very much!!!!!!!!!


How to access a local variable from another class in Python? Is it possible.?
question
python 2.7