Created
August 16, 2021 16:23
-
-
Save brentxphillips/e3db6460be797d6ed2e03df10adc138b to your computer and use it in GitHub Desktop.
Simple text block in GraphicsPlus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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