Hi,
I am making a Helping Script for a game, which uses tkinter for the GUI elements and messagebox for a pop up window.
For this script, there is a custom window decoration, called HackerWindowDecorator. I applied this window decoration to the main window of the script, and it worked without problems, however, i cant get it to work on the pop up window, called RoundSetupDialog.
First thing i tried was adding the decorator in the windows class (L.14: "self.decorator = HackerWindowDecorator(self.top)" ), like i did with the main window (L. 133: "self.decorator = HackerWindowDecorator(self.root)" ), but when i do that, although the window decorations do seem to apply, the windows proportions and gui elements are messed up and the window goes behind all other windows, so i always have to go to the desktop to see it. I also cant interact with the window anymore.
That is about the only approach that gave me some progress, everything else did not change the windows decoration at all or messed up the code completely, with error messages or other strange things.
Apart from that, I did not get any strange error messages or glitches, but i also couldnt find any help on the web on how i could do it correctly.
Essentialy, I am just asking for how to apply the window decoration to the second window, and it could be that i am missing something really obvious here.
Note:
- I attached the whole script to the thread
- Most of the Script was made by the claude AI, since i dont have this much time for such a project.
I am making a Helping Script for a game, which uses tkinter for the GUI elements and messagebox for a pop up window.
For this script, there is a custom window decoration, called HackerWindowDecorator. I applied this window decoration to the main window of the script, and it worked without problems, however, i cant get it to work on the pop up window, called RoundSetupDialog.
First thing i tried was adding the decorator in the windows class (L.14: "self.decorator = HackerWindowDecorator(self.top)" ), like i did with the main window (L. 133: "self.decorator = HackerWindowDecorator(self.root)" ), but when i do that, although the window decorations do seem to apply, the windows proportions and gui elements are messed up and the window goes behind all other windows, so i always have to go to the desktop to see it. I also cant interact with the window anymore.
That is about the only approach that gave me some progress, everything else did not change the windows decoration at all or messed up the code completely, with error messages or other strange things.
Apart from that, I did not get any strange error messages or glitches, but i also couldnt find any help on the web on how i could do it correctly.
Essentialy, I am just asking for how to apply the window decoration to the second window, and it could be that i am missing something really obvious here.
Note:
- I attached the whole script to the thread
- Most of the Script was made by the claude AI, since i dont have this much time for such a project.
Attached Files