0

Hi,
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
Regards

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by BirdaoGwra
0

Kindly let us know which GUI toolkit you are using.

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

Edited by vegaseat: n/a

0

Hi,
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.transient(parent)
        self.title("About")

        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

        self.buttonbox()
        self.grab_set()

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

Regards

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.