So, i was looking for a way to open a window (to make a game) and i figured out, it needs some shaped decoration, so i was looking in other posts of stack overflow and there were none saying how to make it. anyways i need to make it fit in the selected code i found on some of the posts of stack overflow.
from tkinter import *
class Main:
def __init__ (self,root):
self.root = root
self.root.title("Reminder")
self.root.geometry("222x222")
if __name__ == '__main__':
root = Tk()
obj = Main(root)
root.mainloop()
Well, the window did work, but it was kind of tough searching the way how to make a window, since most of the tutorial videos were really bad, so are those underrated web sites claiming they have the solution of that or something, anyways they are weirdos, anyways, moving to the shapes expectation i tried watching some tutorial videos but like last time, they were really bad, so i gived up until i found this website, so can you guys help me out with that.
CodePudding user response:
CodePudding user response:
If you're trying to make a game, I highly suggest pygame
over tkinter
because tkinter
is not really suited for stuff like this (although it is possible, quality won't be as good pygame
).
Nevertheless, if you do still intend to use tkinter
, you might want to know the limitations first. All shapes will have to "labels" with images in it, so essentially it will be all rectangles.
Click here for a post on how to do that