title: Calling a method's variablename from class A into Class B
body: <p>I have been searching an answer to my question but could not hit the related answer.</p>
  
  <p>Basically i am trying to call a variable from a Class A thats actually GUI to another Class B my code goes like this:</p>
  
  <pre><code>class CLASSA(wx.Frame):
      def Method(self):
          self.Var = anyvalue
  
  import CLASSA
  class CLASSB():
      def __init__(self):
          self.Var = CLASSA().Method.Var
  </code></pre>
  
  <p>i have tried as above but its not working out. Isn't it possible to carry out as mentioned ? </p>