Could someone kindly tell me how to stop maximizing a dialog box with cursor? Like, when we create a toplevel window, it is possible to maximize that window with mouse, holding its border. I want to fix the size of the window? How?

Thanks in advance

Kindly let us know which GUI toolkit you are using.

Also, can you give us a small sample of your code?

Edited 6 Years Ago by vegaseat: n/a

I am using tkinter. I tagged it.
I hv made an about dialog with a picture in it. when i click the about menu the about dialog box shows. But the problem is it is resizable with mouse. i want to stop it from resizing. Here is the code.

class aboutDialog(Toplevel):

    def __init__(self, parent, **kw):
        Toplevel.__init__(self, parent)

        self.parent = parent
        self.result = None

        body = Frame(self)
        self.initial_focus = self.body(body)
        body.pack(padx=5, pady=5)

        photo1 = tk.PhotoImage(file="me.gif")

        label = tk.Label(self, image=photo1)
        label.pack(padx=5, pady=5)
        label.image = photo1


Could you kindly tell me, how to stop it from resizing with mouse?
Thank you for reply


This question has already been answered. Start a new discussion instead.