Skip to content

Instantly share code, notes, and snippets.

@brentxphillips
Created August 16, 2021 16:23
Show Gist options
  • Save brentxphillips/e3db6460be797d6ed2e03df10adc138b to your computer and use it in GitHub Desktop.
Save brentxphillips/e3db6460be797d6ed2e03df10adc138b to your computer and use it in GitHub Desktop.
Simple text block in GraphicsPlus
import graphicsPlus as gr
win = gr.GraphWin("Simple Circle", 400, 400)
def text():
textblock = gr.Text(gr.Point(100, 100), "Hello!")
textblock.setSize(18)
textblock.draw(win)
def main():
text()
win.getMouse()
win.close
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment