title: how to get variable from another class python
body: <p>how can i get a variable from another class like that</p>
  
  <pre><code>white=(255,255,255)
  class window:
      def open(a,b,c):
          displaysurf=pygame.display.set_mode(a)
          pygame.display.set_caption(b)
          displaysurf.fill(c)
      def close():
          while True:
              for event in pygame.event.get():
                  if event.type==QUIT:
                      pygame.quit()
                      sys.exit()
              pygame.display.update()
  class img():
      def show(image,position):
          pygame.image.load(image)
          displaysurf.blit(image,position)
  </code></pre>
  
  <p>i want to get the <code>displaysurf</code> variable from <code>window.open()</code> function</p>