BruceSherwood / vpython-wx

VPython based on wxPython
Other
70 stars 38 forks source link

Need window style attribute in window class #8

Closed BruceSherwood closed 10 years ago

BruceSherwood commented 11 years ago

A user reports this: I am trying to create a widget GUI similar to the widgets.py example provided. However my major concern is that I would like to disable the resizing option, since I cannot resize and layout the widgets properly without using wx.Sizer. Is it possible to disable the resize option of the window? Or if not, is it possible to use wx.Sizer/Grid to keep the layout of the window proportional to the window size?

I looked in the code for the window class (create_display.py), and the style attribute is set to wx.DeFAULT_FRAME_STYLE. I changed this temporarily to wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX and it did work. however I would not like to mess about with the vpython code. Is it possible to change this attribute from outside this code? Or is it possible to have a new release of vpython where this attribute is not fixed?

BruceSherwood commented 10 years ago

It is now possible to specify the window style when creating a window, and the example program widgets.py gives an example.