Jan-03-2021, 03:10 PM
Thank for accepted me in this Forum .
Hi everyone can u help me with this Python code .
the purpose of this exercise we have to drawing a window with text center .
So if we want to draw the text in the center of the window. so to do this, we need to position the text relatively to its center rather than its upper left corner. so exercise they give me some these parameters--- topleft, topmiddle, topright, centerleft, centermiddle, centerright, bottomleft, bottommiddle and we have to use some features for drawing window with text center like ({ "title": name title, "width": 000, "height": 000 }).
I tried to do this for 3 day now but i dont know i have to add more code or i have bring back with (width and height) now I am blocked ? hope u guy help me.
Thank u guy in advance.
Hi everyone can u help me with this Python code .
the purpose of this exercise we have to drawing a window with text center .
So if we want to draw the text in the center of the window. so to do this, we need to position the text relatively to its center rather than its upper left corner. so exercise they give me some these parameters--- topleft, topmiddle, topright, centerleft, centermiddle, centerright, bottomleft, bottommiddle and we have to use some features for drawing window with text center like ({ "title": name title, "width": 000, "height": 000 }).
I tried to do this for 3 day now but i dont know i have to add more code or i have bring back with (width and height) now I am blocked ? hope u guy help me.
Thank u guy in advance.
def main_app(): initialize(600, 300, title="first test") t=create_text("Hello world!", (300, 150), (255,0,0), 30, textanchor="centermiddle") draw_text(t) delay_process(5000,uninitialize)
buran write Jan-03-2021, 03:21 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Do not post images of code, output, etc.
Also, please check forum rules, don't hijack threads and always post in the correct subforum. This time I moved your thread
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Do not post images of code, output, etc.
Also, please check forum rules, don't hijack threads and always post in the correct subforum. This time I moved your thread