Skip to content

Instantly share code, notes, and snippets.

@CalvinLogan
Created November 29, 2018 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CalvinLogan/88f898f3c27c9f56dd23725039be1be2 to your computer and use it in GitHub Desktop.
Save CalvinLogan/88f898f3c27c9f56dd23725039be1be2 to your computer and use it in GitHub Desktop.
import os
import gui
from gui import *
#input: none
#return: the width of the screen
def getScreenWidth():
return Toolkit.getDefaultToolkit().getScreenSize().width
#input: none
#return: the height of the screen
def getScreenHeight():
return Toolkit.getDefaultToolkit().getScreenSize().height
#input: none
#return: none
#sets up the display
def setup():
window = Display("Synesthetic Sound", getScreenWidth(), getScreenHeight())
setup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment