I have made a GUI using wxPython. I want to disable the Maximize button, but I am not able to do it. Please suggest a way to implement this.
You bind an event to intercept the maximize event and call an event.veto()
The wx.Frame default style is wx.DEFAULT_FRAME_STYLE and is normally defined as:
so remove wx.MAXIMIZE_BOX to disable it ...
# a wxFrame with the max button/box disabled import wx class MyFrame(wx.Frame): def __init__(self, parent, mytitle, mysize): wx.Frame.__init__(self, parent, wx.ID_ANY, mytitle, size=mysize, style=wx.MINIMIZE_BOX|wx.RESIZE_BORDER|wx.SYSTEM_MENU| wx.CAPTION|wx.CLOSE_BOX|wx.CLIP_CHILDREN) app = wx.App(0) # create a MyFrame instance and show the frame MyFrame(None, 'Max box disabled', (400, 300)).Show() app.MainLoop()
Thanx a lot!!! It worked..
I want to draw a triangle using mouse events like mousePressed(), mouseReleased() and mouseDragged(). But triangle did not show until mouse release. Please tell me what i am ...
what i have done is copied answer in label and now matching the radiobutton option with it so far so good but i dont know how to uncheck radio button ...
Is there anyone know how to read a text file line by line from the web/internet in VC++?
I have a function which works well in reading the ...