title: Python Help with Pygame and Multiprocessing
body: <p>I'm using pygame to blit an image to screen, while it does the mainloop. I'm using multiprocessing for threads, but there seems to be a problem. Please don't chew me out over the weird wannabe xml comments, as I'm fairly new at this. </p>
  
  <p>Here's my code. </p>
  
  <pre><code>#Import libraries
  import pygame
  import os, sys
  import multiprocessing as threading
  import time
  from pygame.locals import *
  pygame.init()
  screen = pygame.display.set_mode((1400,900), FULLSCREEN)
  class loader:
      def sound(name):
          load = os.path.join("data", name)
          sound = pygame.mixer.Sound(load)
          return sound
  
      def song(name):
          load = os.path.join('data', name)
          song = pygame.mixer.Sound(load)
          return song
  
      def picture(name):
          load = os.path.join("data", name)
          image = pygame.image.load(load)
          image = image.convert()
          return image
      def movie(name):
          load = os.path.join("data", name + ".mpg")
          movie = pygame.movie.Movie(name)
          return movie
  
  
  
  
  
  
  
  
  
  
  
  class data():
      class movies():
          #Turns out it's not supported D:
          pass
      class songs():
          theme = loader.song("theme.ogg")
      class sounds():
          fctune = loader.sound("fctune.wav")
      class pictures():
          fc = loader.picture("fc_opaque.tga")
  
  
  #------------------------Logics-------------------------
  
  def showlogo():
      screen.blit(data.pictures.fc, (0,0))
      data.sounds.fctune.play()
      time.sleep(30)
  
  
  
  def startloops():
      logo = threading.Process(target=showlogo, args=())
      gameloop = threading.Process(target=mainloop, args=())
      logo.start()
      logo.join(None)
      gameloop.start()
      gameloop.join(None)
  
  def mainloop():
      while 1:
          clock.tick(30)
          pygame.display.flip()
          for event in pygame.event.get():
              if event.type == QUIT:
                  return
              elif event.type == KEYDOWN and event.key == K_ESCAPE:
                  sys.exit(1)
              elif event.type == MOUSEBUTTONDOWN:
                  pass
              elif event.type is MOUSEBUTTONUP:
                  pass
              #End of looper.
  
  
  #-----------------------/Logics-------------------------
  
  
  
  #----------------------Globals--------------------------
  
  clock = pygame.time.Clock() 
  #----------------------/Globals-------------------------
  
  
  if __name__ == "__main__": startloops()
  </code></pre>
  
  <p>What it does is it creates 2 pygame windows.. (one is supposed to show up when you call </p>
  
  <pre><code>screen = pygame.display.set_mode((1400,900), FULLSCREEN)
  </code></pre>
  
  <p>So apparently it's calling that twice.
  Hmm, multiprocessing seems to be the culprit. Can anyone help out?</p>